A free, self-hostable news aggregator…
Add data/last_update.txt
Marien Fressinaudd59eebf5423a
diff --git a/app/Controllers/updateController.php b/app/Controllers/updateController.phpindex 5d5ec3586..5424792f4 100644--- a/app/Controllers/updateController.php+++ b/app/Controllers/updateController.php@@ -11,7 +11,11 @@ class FreshRSS_update_Controller extends Minz_ActionController {}Minz_View::prependTitle(_t('update_system') . ' · ');- $this->view->last_update_time = 'unknown'; // TODO+ $this->view->last_update_time = 'unknown';+ $timestamp = (int)@file_get_contents(DATA_PATH . '/last_update.txt');+ if (is_numeric($timestamp) && $timestamp > 0) {+ $this->view->last_update_time = timestamptodate($timestamp);+ }}public function indexAction() {@@ -99,8 +103,7 @@ class FreshRSS_update_Controller extends Minz_ActionController {if ($res === true) {@unlink(UPDATE_FILENAME);-- // TODO: record last update_finished+ @file_put_contents(DATA_PATH . '/last_update.txt', time());Minz_Request::good(_t('update_finished'));} else {