X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp%2FMode.php;h=8d82ffc0b499ee57b24df6716d5e11bda4cde783;hb=a1f332aaa527ae36ecc8cf2944f8b71e2317afea;hp=d9f5cdbd4c5b09f79cfa1f12c0dbd9f975e81e5e;hpb=4ae37c61966a7f4c055369ee8fd0d4bc20808fdb;p=friendica.git diff --git a/src/App/Mode.php b/src/App/Mode.php index d9f5cdbd4c..8d82ffc0b4 100644 --- a/src/App/Mode.php +++ b/src/App/Mode.php @@ -42,7 +42,7 @@ class Mode * - App::MODE_NORMAL : Normal run with all features enabled * * @param string $basepath the Basepath of the Application - * + * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ public function determine($basepath = null) { @@ -52,8 +52,9 @@ class Mode $this->mode = 0; - if (!file_exists($this->basepath . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'local.ini.php') - && !file_exists($this->basepath . DIRECTORY_SEPARATOR . '.htconfig.php')) { + if (!file_exists($this->basepath . '/config/local.config.php') + && !file_exists($this->basepath . '/config/local.ini.php') + && !file_exists($this->basepath . '/.htconfig.php')) { return; }