diff --git a/ecrire/inc/filtres.php b/ecrire/inc/filtres.php index c6c79eb108faedad21e126b9faf7b636a44041d4..43a70c5903a0401ba299739d6fb0fcf981aca7df 100644 --- a/ecrire/inc/filtres.php +++ b/ecrire/inc/filtres.php @@ -2313,8 +2313,8 @@ function filtre_cache_static($scripts,$type='js'){ $dir = sous_repertoire(_DIR_VAR,'cache-'.$type); $nom = $dir . md5(serialize($scripts)) . ".$type"; if ( - (_request('var_mode')=='recalcul') - OR (!file_exists($nom))){ + $GLOBALS['var_mode']=='recalcul' + OR !file_exists($nom)){ $fichier = ""; $comms = array(); $total = 0; diff --git a/ecrire/inc/surligne.php b/ecrire/inc/surligne.php index 22189f92020117620f0a5a690a6f88a0fd4326e9..eb82a439fc85243eec5cc17b8bda2e9172f0aab7 100644 --- a/ecrire/inc/surligne.php +++ b/ecrire/inc/surligne.php @@ -53,6 +53,7 @@ function surligner_mots($page) { if($surcharge_surligne || (preg_match($engine[0],$ref) && preg_match($engine[1],$ref))) { //good referrer found or var_recherche is not null + include_spip('inc/filtres'); $script = " <script type='text/javascript' src='".url_absolue(find_in_path('javascript/SearchHighlight.js'))."'></script> <script type='text/javascript'>