mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 02:46:04 +01:00
notifications js config
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user