]> git.mxchange.org Git - friendica.git/blobdiff - src/App/Mode.php
Display mentioned users and in the comment box by default
[friendica.git] / src / App / Mode.php
index 10f1092a8952effd2d749d308cc05cf87682b8b6..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;
                }
 
@@ -87,10 +88,6 @@ class Mode
         */
        public function has($mode)
        {
-               echo "mode: " . $this->mode . " with " . $mode;
-
-               echo "value: " . ($this->mode & $mode);
-
                return ($this->mode & $mode) > 0;
        }