diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-02-27 20:24:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-27 20:24:28 +0100 |
commit | 5978588578ca103152598ccfbe41019b12e00a4f (patch) | |
tree | eedbb83c420f6af103440bcafbe6b79738ce7521 /application | |
parent | 9e5a37cc7f4eb1c83222a94eb83d4e99ce4460a4 (diff) | |
parent | 7dcbfde5ffbc057a44f710e3be7e4856d235e90b (diff) | |
download | Shaarli-5978588578ca103152598ccfbe41019b12e00a4f.tar.gz Shaarli-5978588578ca103152598ccfbe41019b12e00a4f.tar.zst Shaarli-5978588578ca103152598ccfbe41019b12e00a4f.zip |
Merge pull request #754 from ArthurHoaro/webdesign2
New default template
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 | /** |