notifications js config

This commit is contained in:
Andy Miller
2019-02-11 14:33:48 -07:00
parent 560edf21f4
commit 7601ad7052
3 changed files with 17 additions and 3 deletions

View File

@@ -1346,8 +1346,8 @@ class Admin
$timeout = $this->grav['config']->get('system.session.timeout', 1800);
if ($force || !$last_checked || empty($notifications) || (time() - $last_checked > $timeout)) {
$body = Response::get('https://getgrav.org/notifications.json?' . time());
// $body = Response::get('http://localhost/notifications.json?' . time());
// $body = Response::get('https://getgrav.org/notifications.json?' . time());
$body = Response::get('http://localhost/notifications.json?' . time());
$notifications = json_decode($body, true);
// Sort by date