]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/Updater.php
Set the vintage theme by default for the time being
[github/shaarli/Shaarli.git] / application / Updater.php
index 90aba74508faa33472d3bc6a754f127cf1a8e066..3f5d325b8ec5d29be258144f744b03598f3e19cf 100644 (file)
@@ -324,6 +324,20 @@ class Updater
 
         return rename('inc/user.css', 'data/user.css');
     }
+
+    /**
+     * While the new default theme is in an unstable state
+     * continue to use the vintage theme
+     */
+    public function updateMethodDefaultThemeVintage()
+    {
+        if ($this->conf->get('resource.theme') !== 'default') {
+            return true;
+        }
+        $this->conf->set('resource.theme', 'vintage');
+        $this->conf->write($this->isLoggedIn);
+        return true;
+    }
 }
 
 /**