mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 00:54:49 +02:00
Make sure dashboard only check for core updates once per session. (unless debug is enabled)
This commit is contained in:
@@ -254,14 +254,26 @@ class admin_start
|
||||
return null;
|
||||
}
|
||||
|
||||
$checked = e107::getSession()->get('core-update-checked');
|
||||
|
||||
if(!deftrue('e_DEBUG') && $checked === true)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
//$sc = e107::getScBatch('admin');
|
||||
//echo $tp->parseTemplate('{ADMIN_COREUPDATE=alert}',true, $sc);
|
||||
|
||||
|
||||
|
||||
global $dont_check_update, $e107info;
|
||||
global $dbupdate, $dbupdatep, $e107cache;
|
||||
|
||||
require_once(e_ADMIN.'update_routines.php');
|
||||
|
||||
e107::getSession()->set('core-update-checked',true);
|
||||
|
||||
|
||||
if(update_check() === true)
|
||||
{
|
||||
if(e_DEBUG !== true)
|
||||
|
Reference in New Issue
Block a user