Changeset 110768 in spip-zone
- Timestamp:
- Jun 20, 2018, 10:23:36 AM (3 years ago)
- Location:
- _outils_/spip-cli/trunk/src
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_outils_/spip-cli/trunk/src/Loader/Spip.php
r110765 r110768 107 107 108 108 public function getPathConnect() { 109 return $this->getPathFile($this->connect); 109 return $this->getSiteFile($this->connect); 110 } 111 112 /** 113 * Retourne un chemin complet vers un fichier d’un site SPIP 114 * (pour config, local, tmp, IMG) qui peut être à la racine 115 * ou dans le répertoire sites/xxx/ 116 * @param string $path 117 * @return string Chemin complet 118 */ 119 public function getSiteFile($path) { 120 if (defined('_DIR_SITE')) { 121 return $this->getPathFile(_DIR_SITE . $path); 122 } 123 return $this->getPathFile($path); 110 124 } 111 125 … … 206 220 protected function preparerPourInstallation() { 207 221 // Si jamais la base n'est pas installé on anhile la redirection et on affirme qu'on est sur la page d'installation 208 if (!is_file($this->connect)) { 222 // Seulement si 'HTTP_HOST' n’a pas été défini (ce qui soulignerait que l’on serait sur un spip mutualisé 223 // dont on a indiqué l’url — afin que le mes_options retrouve le bon dossier sites/ ensuite) 224 if (empty($_SERVER['HTTP_HOST']) and !is_file($this->connect)) { 209 225 $_GET['exec'] = 'install'; 210 226 define('_FILE_CONNECT', 'config/connect.tmp.php');
Note: See TracChangeset
for help on using the changeset viewer.