1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Make sure dashboard only check for core updates once per session. (unless debug is enabled)

This commit is contained in:
Cameron
2017-01-22 10:04:29 -08:00
parent 1e933f0fdd
commit 3e9624be81
3 changed files with 16 additions and 2 deletions

View File

@@ -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)

View File

@@ -53,6 +53,7 @@ if(is_readable(e_ADMIN.'ver.php'))
}
$mes = e107::getMessage();
/*
// If $dont_check_update is both defined and TRUE on entry, a check for update is done only once per 24 hours.
$dont_check_update = varset($dont_check_update, FALSE);
@@ -69,8 +70,9 @@ if ($dont_check_update === TRUE)
}
}
}
*/
$dont_check_update = false;
if (!$dont_check_update)
{

View File

@@ -3678,7 +3678,7 @@ class e_parser
return $link;
}
return "<a href='".$link."'>-attachment-</a>"; //TODO Add pref for this.
return "<a href='".$link."'>-attachment-</a>"; //TODO Add pref for this.
}
/**