From 628ab74364ed1fce722c05ff47fe239b4bafe0d5 Mon Sep 17 00:00:00 2001 From: James <james@rezo.net> Date: Sat, 21 Oct 2006 14:28:21 +0000 Subject: [PATCH] Suite [7673] : il manquait _DIR_IMG, et _DIR_PI, c'est pas bon :) --- ecrire/inc_version.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ecrire/inc_version.php b/ecrire/inc_version.php index 020cde498c..58f661cf89 100644 --- a/ecrire/inc_version.php +++ b/ecrire/inc_version.php @@ -281,6 +281,7 @@ function spip_initialisation_parametree($pi, $pa, $ti, $ta) { if ($too_late) return; $too_late = true; + define('_DIR_IMG', $pa); define('_DIR_DOC', $pa); define('_DIR_LOGOS', $pa); define('_DIR_IMG_ICONES', $pa . "icones/"); @@ -324,7 +325,7 @@ if (defined('_FILE_OPTIONS')) { include_once(_FILE_OPTIONS); } } else { - if (@file_exists(_DIR_PI . 'mes_options.php')) { + if (@file_exists(_DIRNAME_PERMANENT_INACCESSIBLE . 'mes_options.php')) { define('_FILE_OPTIONS', _DIRNAME_PERMANENT_INACCESSIBLE . 'mes_options.php'); include_once(_FILE_OPTIONS); } -- GitLab