Skip to content
Extraits de code Groupes Projets
Valider 53ac6eeb rédigé par marcimat's avatar marcimat
Parcourir les fichiers

2 notices php après l'installation :

- l'appel de $GLOBALS['meta']['xx'] est toujours problématique : cela crée une notice dès que xx n'existe pas (ou pas encore). Il serait plus perenne d'utiliser lire_config() tout le temps plutôt que de mettre, comme ici, un isset() de plus disgracieux.

- le debuggeur dans l'espace privé n'a pas de globale 'fond' accessible.
parent a71513fd
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -189,7 +189,7 @@ function html_tests_js(){
**/
function info_maj_spip(){
$maj = $GLOBALS['meta']['info_maj_spip'];
$maj = isset($GLOBALS['meta']['info_maj_spip']) ? $GLOBALS['meta']['info_maj_spip'] : null;
if (!$maj)
return "";
......
......@@ -63,8 +63,12 @@ function public_debusquer_dist($message = '', $lieu = ''){
$urgence = (_DEBUG_MAX_SQUELETTE_ERREURS AND count($tableau_des_erreurs)>_DEBUG_MAX_SQUELETTE_ERREURS);
if (!$urgence) return;
}
if (empty($debug_objets['principal']))
$debug_objets['principal'] = $GLOBALS['fond'];
if (empty($debug_objets['principal'])) {
// espace public ?
if (isset($GLOBALS['fond'])) {
$debug_objets['principal'] = $GLOBALS['fond'];
}
}
include_spip('inc/autoriser');
if (!autoriser('debug')) return;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter