aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Updater.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-02-27 20:20:53 +0100
committerArthurHoaro <arthur@hoa.ro>2017-02-27 20:20:53 +0100
commit7dcbfde5ffbc057a44f710e3be7e4856d235e90b (patch)
treeeedbb83c420f6af103440bcafbe6b79738ce7521 /application/Updater.php
parent7040169069322d72cec4276b7b812291b57a0d40 (diff)
downloadShaarli-7dcbfde5ffbc057a44f710e3be7e4856d235e90b.tar.gz
Shaarli-7dcbfde5ffbc057a44f710e3be7e4856d235e90b.tar.zst
Shaarli-7dcbfde5ffbc057a44f710e3be7e4856d235e90b.zip
Set the vintage theme by default for the time being
Diffstat (limited to 'application/Updater.php')
-rw-r--r--application/Updater.php14
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/**