1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Additional checks for constants. Disable addon lookup cache in debug mode.

This commit is contained in:
Cameron
2021-01-05 10:04:26 -08:00
parent 7dec5cf40e
commit 741d91a76b
5 changed files with 13 additions and 7 deletions

View File

@@ -52,7 +52,10 @@ if(e_AJAX_REQUEST && getperms('0') && varset($_GET['mode']) == 'core' && ($_GET
if(e_AJAX_REQUEST && getperms('0') && varset($_GET['mode']) == 'addons' && ($_GET['type'] == 'update'))
{
e107::getSession()->set('addons-update-checked',true);
if(!E107_DEBUG_LEVEL)
{
e107::getSession()->set('addons-update-checked',true);
}
/** @var admin_shortcodes $sc */
$sc = e107::getScBatch('admin');
@@ -63,7 +66,6 @@ if(e_AJAX_REQUEST && getperms('0') && varset($_GET['mode']) == 'addons' && ($_G
$text = $sc->renderAddonUpdate($plugins);
$text .= $sc->renderAddonUpdate($themes);
if(empty($text))
{
exit;
@@ -78,7 +80,10 @@ if(e_AJAX_REQUEST && getperms('0') && varset($_GET['mode']) == 'addons' && ($_G
echo $ret;
e107::getSession()->set('addons-update-status',$ret);
if(!E107_DEBUG_LEVEL)
{
e107::getSession()->set('addons-update-status',$ret);
}
exit;