]> git.mxchange.org Git - friendica.git/blobdiff - src/App/Mode.php
Add contact/batch route
[friendica.git] / src / App / Mode.php
index d9f5cdbd4c5b09f79cfa1f12c0dbd9f975e81e5e..8d82ffc0b499ee57b24df6716d5e11bda4cde783 100644 (file)
@@ -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;
                }