1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 04:41:53 +02:00

Issue #2818 Moved core database update check to ajax.

This commit is contained in:
Cameron
2017-11-15 17:51:46 -08:00
parent ab76e96e86
commit 1069998c42
7 changed files with 87 additions and 4 deletions

View File

@@ -35,6 +35,24 @@ if(ADMIN && defset('e_ADMIN_UI') && varset($_POST['mode']) == 'sef' && !empty($_
exit;
}
if(ADMIN && e_AJAX_REQUEST && varset($_GET['mode']) == 'core' && ($_GET['type'] == 'update'))
{
require_once(e_ADMIN.'update_routines.php');
e107::getSession()->set('core-update-checked',false);
$status = (update_check() === true) ? true : false;
e107::getSession()->set('core-update-status',$status);
echo json_encode($status);
exit;
}
if(ADMIN && e_AJAX_REQUEST && varset($_GET['mode']) == 'core' && ($_GET['type'] == 'feed'))
{