From 7f2e9d10a3ce0b1f2bcddcaad32b57e945b4e0ca Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 2 Aug 2017 10:45:26 +0200 Subject: Show correct status in update notification Sometimes it could be the case that after a channel change the last updated timestamp is reset, but the check for updates is not yet completed. In this case the update notification showed "You are up to date" and the date was "1970-01-01 00:00:00". With this fix the state is properly shown. Signed-off-by: Morris Jobke --- apps/updatenotification/templates/admin.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/updatenotification/templates/admin.php') diff --git a/apps/updatenotification/templates/admin.php b/apps/updatenotification/templates/admin.php index 369d4905a40..bda27abf25e 100644 --- a/apps/updatenotification/templates/admin.php +++ b/apps/updatenotification/templates/admin.php @@ -6,6 +6,8 @@ $isNewVersionAvailable = $_['isNewVersionAvailable']; /** @var string $newVersionString */ $newVersionString = $_['newVersionString']; + /** @var bool $isUpdateChecked */ + $isUpdateChecked = $_['isUpdateChecked']; /** @var string $lastCheckedDate */ $lastCheckedDate = $_['lastChecked']; /** @var array $channels */ @@ -22,6 +24,8 @@ t('Download now')) ?> + + t('The update check is not yet finished. Please refresh the page.')); ?> t('Your version is up to date.')); ?> -- cgit v1.2.3