From 0cdc58d67570a7f4b950d10d86f1cf8a7bd60a4a Mon Sep 17 00:00:00 2001 From: renato <renato@rezo.net> Date: Mon, 27 Nov 2006 15:27:25 +0000 Subject: [PATCH] javascript was not enabled when previous detection was not successful --- ecrire/inc/presentation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecrire/inc/presentation.php b/ecrire/inc/presentation.php index de0ed989b2..62409bc6a6 100644 --- a/ecrire/inc/presentation.php +++ b/ecrire/inc/presentation.php @@ -1338,7 +1338,7 @@ function debut_javascript($admin, $stat) // envoi le fichier JS de config si browser ok. $GLOBALS['browser_layer'] . http_script( - (isset($_COOKIE['spip_accepte_ajax']) >= 1 + ((isset($_COOKIE['spip_accepte_ajax']) && $_COOKIE['spip_accepte_ajax'] >= 1) ? '' : "$.ajax('GET', '$testeur')") . "\nvar ajax_image_searching = \n'<div style=\"float: ".$GLOBALS['spip_lang_right'].";\"><img src=\"".url_absolue(_DIR_IMG_PACK."searching.gif")."\" alt=\"\" /></div>';" . -- GitLab