aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Updater.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-05-07 16:52:38 +0200
committerArthurHoaro <arthur@hoa.ro>2017-05-07 17:11:25 +0200
commit57ce6dae5d5c737adde277b9d43bafb68101df40 (patch)
treec26f4e9c3ac42fe0613887cd699a3fbeb47b89a4 /application/Updater.php
parent813849e5216cb87121e0f778a734575be6a36052 (diff)
downloadShaarli-57ce6dae5d5c737adde277b9d43bafb68101df40.tar.gz
Shaarli-57ce6dae5d5c737adde277b9d43bafb68101df40.tar.zst
Shaarli-57ce6dae5d5c737adde277b9d43bafb68101df40.zip
Reset the history file due to datetime format change
Diffstat (limited to 'application/Updater.php')
-rw-r--r--application/Updater.php11
1 files changed, 11 insertions, 0 deletions
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
440 $this->conf->write($this->isLoggedIn); 440 $this->conf->write($this->isLoggedIn);
441 return true; 441 return true;
442 } 442 }
443
444 /**
445 * Reset history store file due to date format change.
446 */
447 public function updateMethodResetHistoryFile()
448 {
449 if (is_file($this->conf->get('resource.history'))) {
450 unlink($this->conf->get('resource.history'));
451 }
452 return true;
453 }
443} 454}
444 455
445/** 456/**