Skip to content
Extraits de code Groupes Projets
Valider 208ebf7c rédigé par Fil's avatar Fil
Parcourir les fichiers

le nom du repertoire sites/ en option de demarrer_site()

parent 9507735b
Branches
Étiquettes
Aucune requête de fusion associée trouvée
...@@ -22,7 +22,8 @@ function demarrer_site($site, $options = array()) { ...@@ -22,7 +22,8 @@ function demarrer_site($site, $options = array()) {
array( array(
'creer_site' => false, 'creer_site' => false,
'cookie_prefix' => true, 'cookie_prefix' => true,
'table_prefix' => true 'table_prefix' => true,
'repertoire' => 'sites'
), ),
$options $options
); );
...@@ -37,7 +38,7 @@ function demarrer_site($site, $options = array()) { ...@@ -37,7 +38,7 @@ function demarrer_site($site, $options = array()) {
$GLOBALS['table_prefix'] = $prefix; $GLOBALS['table_prefix'] = $prefix;
} }
if (!is_dir($e = _DIR_RACINE . 'sites/' . $site . '/')) { if (!is_dir($e = _DIR_RACINE . $options['repertoire'].'/' . $site . '/')) {
spip_initialisation(); spip_initialisation();
echec_init_mutualisation($e, $options); echec_init_mutualisation($e, $options);
exit; exit;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter