Skip to content
Extraits de code Groupes Projets
Valider 152f8d3e rédigé par marcimat's avatar marcimat
Parcourir les fichiers

fix: Chemins absolus des _ROOT_* sous Windows

parent a4bede79
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -26,9 +26,9 @@ define('_DIR_RESTREINT', (is_dir(_DIR_RESTREINT_ABS) ? _DIR_RESTREINT_ABS : '')) ...@@ -26,9 +26,9 @@ define('_DIR_RESTREINT', (is_dir(_DIR_RESTREINT_ABS) ? _DIR_RESTREINT_ABS : ''))
define('_DIR_RACINE', _DIR_RESTREINT ? '' : '../'); define('_DIR_RACINE', _DIR_RESTREINT ? '' : '../');
/** chemin absolu vers la racine */ /** chemin absolu vers la racine */
define('_ROOT_RACINE', dirname(__DIR__, 3) . '/'); define('_ROOT_RACINE', dirname(__DIR__, 3) . DIRECTORY_SEPARATOR);
/** chemin absolu vers le repertoire de travail */ /** chemin absolu vers le repertoire de travail */
define('_ROOT_CWD', getcwd() . '/'); define('_ROOT_CWD', getcwd() . DIRECTORY_SEPARATOR);
/** chemin absolu vers ecrire */ /** chemin absolu vers ecrire */
define('_ROOT_RESTREINT', _ROOT_CWD . _DIR_RESTREINT); define('_ROOT_RESTREINT', _ROOT_CWD . _DIR_RESTREINT);
...@@ -61,7 +61,7 @@ if (!defined('_NOM_IMG_PACK')) { ...@@ -61,7 +61,7 @@ if (!defined('_NOM_IMG_PACK')) {
define('_DIR_IMG_PACK', (_DIR_RACINE . 'prive/' . _NOM_IMG_PACK)); define('_DIR_IMG_PACK', (_DIR_RACINE . 'prive/' . _NOM_IMG_PACK));
/** le chemin php (absolu) vers les images standard (pour hebergement centralise) */ /** le chemin php (absolu) vers les images standard (pour hebergement centralise) */
define('_ROOT_IMG_PACK', dirname(__DIR__, 3) . '/prive/' . _NOM_IMG_PACK); define('_ROOT_IMG_PACK', dirname(__DIR__, 3) . DIRECTORY_SEPARATOR . 'prive' . DIRECTORY_SEPARATOR . _NOM_IMG_PACK);
if (!defined('_JAVASCRIPT')) { if (!defined('_JAVASCRIPT')) {
/** Nom du repertoire des bibliotheques JavaScript */ /** Nom du repertoire des bibliotheques JavaScript */
......
...@@ -195,10 +195,10 @@ function spip_initialisation_core($pi = null, $pa = null, $ti = null, $ta = null ...@@ -195,10 +195,10 @@ function spip_initialisation_core($pi = null, $pa = null, $ti = null, $ta = null
define('_DEFAULT_CHARSET', 'utf-8'); define('_DEFAULT_CHARSET', 'utf-8');
} }
if (!defined('_ROOT_PLUGINS')) { if (!defined('_ROOT_PLUGINS')) {
define('_ROOT_PLUGINS', _ROOT_RACINE . 'plugins/'); define('_ROOT_PLUGINS', _ROOT_RACINE . 'plugins' . DIRECTORY_SEPARATOR);
} }
if (!defined('_ROOT_PLUGINS_DIST')) { if (!defined('_ROOT_PLUGINS_DIST')) {
define('_ROOT_PLUGINS_DIST', _ROOT_RACINE . 'plugins-dist/'); define('_ROOT_PLUGINS_DIST', _ROOT_RACINE . 'plugins-dist' . DIRECTORY_SEPARATOR);
} }
if (!defined('_ROOT_PLUGINS_SUPPL') && defined('_DIR_PLUGINS_SUPPL') && _DIR_PLUGINS_SUPPL) { if (!defined('_ROOT_PLUGINS_SUPPL') && defined('_DIR_PLUGINS_SUPPL') && _DIR_PLUGINS_SUPPL) {
define('_ROOT_PLUGINS_SUPPL', _ROOT_RACINE . str_replace(_DIR_RACINE, '', _DIR_PLUGINS_SUPPL)); define('_ROOT_PLUGINS_SUPPL', _ROOT_RACINE . str_replace(_DIR_RACINE, '', _DIR_PLUGINS_SUPPL));
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter