]> git.mxchange.org Git - friendica.git/commitdiff
Issue 4956: Don't fail during installation because of a missing theme configuration
authorMichael <heluecht@pirati.ca>
Sun, 20 May 2018 05:44:20 +0000 (05:44 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 20 May 2018 05:44:20 +0000 (05:44 +0000)
src/App.php

index 07e776745535f1b60039a71ca1f7270c9ca6f7a4..655ea84f00d958008c6d7c8fffcf6d0ed8adb1a6 100644 (file)
@@ -1091,6 +1091,10 @@ class App
         */
        public function getCurrentTheme()
        {
+               if ($this->mode == App::MODE_INSTALL) {
+                       return '';
+               }
+
                if (!$this->current_theme) {
                        $this->computeCurrentTheme();
                }