From: ArthurHoaro Date: Sun, 7 May 2017 14:52:38 +0000 (+0200) Subject: Reset the history file due to datetime format change X-Git-Tag: v0.9.0~6^2~2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=57ce6dae5d5c737adde277b9d43bafb68101df40;hp=813849e5216cb87121e0f778a734575be6a36052;p=github%2Fshaarli%2FShaarli.git Reset the history file due to datetime format change --- diff --git a/application/Updater.php b/application/Updater.php index 0fb68c5a..03d93a6f 100644 --- a/application/Updater.php +++ b/application/Updater.php @@ -440,6 +440,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; + } } /**