]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/Updater.php
Merge pull request #858 from ArthurHoaro/api/history-entries
[github/shaarli/Shaarli.git] / 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;
+    }
 }
 
 /**