use live by default

This commit is contained in:
Andy Miller
2019-02-08 22:01:23 -07:00
parent 032929fc47
commit 560edf21f4

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