From cd01997c0307ba20265e8ac42c55ff8ead5759af Mon Sep 17 00:00:00 2001
From: James <james@rezo.net>
Date: Tue, 24 Oct 2006 11:18:02 +0000
Subject: [PATCH] =?UTF-8?q?chmod:=20charger=20le=20fichier=20que=20l'insta?=
 =?UTF-8?q?llateur=20a=20cr=C3=A9=C3=A9.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/inc/utils.php | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/ecrire/inc/utils.php b/ecrire/inc/utils.php
index b11298ac29..1629249821 100644
--- a/ecrire/inc/utils.php
+++ b/ecrire/inc/utils.php
@@ -969,9 +969,6 @@ function spip_initialisation($pi=NULL, $pa=NULL, $ti=NULL, $ta=NULL) {
 	if (!isset($GLOBALS['test_dirs']))
 		$GLOBALS['test_dirs'] =  array($pa, $ti, $ta);
 
-	// Definition des droits d'acces en ecriture
-	define('_SPIP_CHMOD', 0777);
-
 	// Le fichier de connexion a la base de donnees
 	define('_FILE_CONNECT_INS', _DIR_ETC . 'connect');
 	define('_FILE_CONNECT',
@@ -986,6 +983,12 @@ function spip_initialisation($pi=NULL, $pa=NULL, $ti=NULL, $ta=NULL) {
 		(@is_readable($f = _FILE_CHMOD_INS . '.php') ? $f
 	:	false));
 
+	// Definition des droits d'acces en ecriture
+	if(!_FILE_CHMOD)
+		define('_SPIP_CHMOD', 0777);
+	else
+		include_once _FILE_CHMOD;
+
 	// la taille maxi des logos (0 : pas de limite)
 	define('_LOGO_MAX_SIZE', 0); # poids en ko
 	define('_LOGO_MAX_WIDTH', 0); # largeur en pixels
-- 
GitLab