mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 11:26:04 +01:00
use live by default
This commit is contained in:
@@ -1346,8 +1346,8 @@ class Admin
|
|||||||
$timeout = $this->grav['config']->get('system.session.timeout', 1800);
|
$timeout = $this->grav['config']->get('system.session.timeout', 1800);
|
||||||
|
|
||||||
if ($force || !$last_checked || empty($notifications) || (time() - $last_checked > $timeout)) {
|
if ($force || !$last_checked || empty($notifications) || (time() - $last_checked > $timeout)) {
|
||||||
// $body = Response::get('https://getgrav.org/notifications.json?' . time());
|
$body = Response::get('https://getgrav.org/notifications.json?' . time());
|
||||||
$body = Response::get('http://localhost/notifications.json?' . time());
|
// $body = Response::get('http://localhost/notifications.json?' . time());
|
||||||
$notifications = json_decode($body, true);
|
$notifications = json_decode($body, true);
|
||||||
|
|
||||||
// Sort by date
|
// Sort by date
|
||||||
|
|||||||
Reference in New Issue
Block a user