]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Reset the history file due to datetime format change
authorArthurHoaro <arthur@hoa.ro>
Sun, 7 May 2017 14:52:38 +0000 (16:52 +0200)
committerArthurHoaro <arthur@hoa.ro>
Sun, 7 May 2017 15:11:25 +0000 (17:11 +0200)
application/Updater.php

index 0fb68c5aa151bedffe10e5c79e8207997ee812de..03d93a6f98ac22d543b243005b3ee185a797e58c 100644 (file)
@@ -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;
+    }
 }
 
 /**