X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FUpdater.php;h=40a15906b6bac9b53fb54faff0232b6514dd76ec;hb=b5c33d702ac973e7bc1401e484c6b8799eea1e91;hp=0fb68c5aa151bedffe10e5c79e8207997ee812de;hpb=dcc85ea619ee728361c62b2b7a7cc8f37081dfbf;p=github%2Fshaarli%2FShaarli.git diff --git a/application/Updater.php b/application/Updater.php index 0fb68c5a..40a15906 100644 --- a/application/Updater.php +++ b/application/Updater.php @@ -328,21 +328,6 @@ 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; - } - /** * * `markdown_escape` is a new setting, set to true as default. * @@ -440,6 +425,17 @@ class Updater $this->conf->write($this->isLoggedIn); return true; } + + /** + * Reset history store file due to date format change. + */ + public function updateMethodResetHistoryFile() + { + if (is_file($this->conf->get('resource.history'))) { + unlink($this->conf->get('resource.history')); + } + return true; + } } /**