From 38fd11848a57dc20079dcfccb6c8896e086b680c Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Sat, 6 May 2017 16:50:59 +0000 Subject: [PATCH] Fix cas borderline si dans mes_options on appelle redirige_par_entete qui utilise _T et charge un fichier de langue on a pas encore inclus flock.php --- ecrire/inc/utils.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php index f20c4ccb35..d465d795b9 100644 --- a/ecrire/inc/utils.php +++ b/ecrire/inc/utils.php @@ -1514,6 +1514,12 @@ function find_all_in_path($dir, $pattern, $recurs = false) { $liste_fichiers = array(); $maxfiles = 10000; + // cas borderline si dans mes_options on appelle redirige_par_entete qui utilise _T et charge un fichier de langue + // on a pas encore inclus flock.php + if (!function_exists('preg_files')) { + include_once _ROOT_RESTREINT . 'inc/flock.php'; + } + // Parcourir le chemin foreach (creer_chemin() as $d) { $f = $d . $dir; -- GitLab