diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-02-27 20:20:53 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-02-27 20:20:53 +0100 |
commit | 7dcbfde5ffbc057a44f710e3be7e4856d235e90b (patch) | |
tree | eedbb83c420f6af103440bcafbe6b79738ce7521 /application | |
parent | 7040169069322d72cec4276b7b812291b57a0d40 (diff) | |
download | Shaarli-7dcbfde5ffbc057a44f710e3be7e4856d235e90b.tar.gz Shaarli-7dcbfde5ffbc057a44f710e3be7e4856d235e90b.tar.zst Shaarli-7dcbfde5ffbc057a44f710e3be7e4856d235e90b.zip |
Set the vintage theme by default for the time being
Diffstat (limited to 'application')
-rw-r--r-- | application/Updater.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/application/Updater.php b/application/Updater.php index 90aba745..3f5d325b 100644 --- a/application/Updater.php +++ b/application/Updater.php | |||
@@ -324,6 +324,20 @@ class Updater | |||
324 | 324 | ||
325 | return rename('inc/user.css', 'data/user.css'); | 325 | return rename('inc/user.css', 'data/user.css'); |
326 | } | 326 | } |
327 | |||
328 | /** | ||
329 | * While the new default theme is in an unstable state | ||
330 | * continue to use the vintage theme | ||
331 | */ | ||
332 | public function updateMethodDefaultThemeVintage() | ||
333 | { | ||
334 | if ($this->conf->get('resource.theme') !== 'default') { | ||
335 | return true; | ||
336 | } | ||
337 | $this->conf->set('resource.theme', 'vintage'); | ||
338 | $this->conf->write($this->isLoggedIn); | ||
339 | return true; | ||
340 | } | ||
327 | } | 341 | } |
328 | 342 | ||
329 | /** | 343 | /** |