diff --git a/ecrire/inc_utils.php b/ecrire/inc_utils.php index b3de6241107491953910878689d982fa0c3a4272..f30e7c22dfec9d97bcab793fd5f26860a03f3d8a 100644 --- a/ecrire/inc_utils.php +++ b/ecrire/inc_utils.php @@ -628,11 +628,13 @@ function texte_script($texte) { function find_in_path ($filename, $sinon = NULL, $path='AUTO') { static $autopath; + static $count=0; # nombre de plugins ; s'il change il faut refaire le path // Chemin standard depuis l'espace public if ($path == 'AUTO') { - if (!$autopath) { - + if (!$autopath + OR ($count != ($c = count($GLOBALS['plugins'])))) { + $count = $c; // Depuis l'espace prive, remonter d'un cran, sauf pour : // - les absolus (/) ; - les locaux (./) ; les remontees (../) if (_DIR_RACINE) {