Skip to content
Extraits de code Groupes Projets
Valider 152d8892 rédigé par cerdic's avatar cerdic
Parcourir les fichiers

une constante pour passer en mode developpeur ou l'enlever

parent f56dd1c8
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -244,6 +244,10 @@ function AjaxSqueezeNode(trig, target, f, event)
}
valid = (typeof event != 'object') ? false : ((event.altKey || event.metaKey) == true);
valid = false;
if (typeof(window['_OUTILS_DEVELOPPEURS']) != 'undefined')
valid = (typeof event != 'object') ? false : ((event.altKey || event.metaKey) == true);
if (typeof(trig) == 'string') {
i = trig.split('?');
trig = i[0] +'?var_ajaxcharset=utf-8&' + i[1];
......
......@@ -1356,6 +1356,7 @@ function debut_javascript($admin, $stat)
((isset($_COOKIE['spip_accepte_ajax']) && $_COOKIE['spip_accepte_ajax'] >= 1)
? ''
: "jQuery.ajax({'url':'$testeur'});") .
(_OUTILS_DEVELOPPEURS ?"var _OUTILS_DEVELOPPEURS=true;":"") .
"\nvar ajax_image_searching = \n'<div style=\"float: ".$GLOBALS['spip_lang_right'].";\"><img src=\"".url_absolue(_DIR_IMG_PACK."searching.gif")."\" alt=\"\" /></div>';" .
"\nvar stat = " . ($stat ? 1 : 0) .
"\nvar largeur_icone = " .
......
......@@ -343,6 +343,8 @@ if (@is_readable(_DIR_TMP."charger_plugins_options.php")){
spip_log("generation de charger_plugins_options.php impossible; pipeline desactives");
}
define('_OUTILS_DEVELOPPEURS',true);
// charger systematiquement inc/autoriser dans l'espace restreint
if (!_DIR_RESTREINT)
include_spip('inc/autoriser');
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter