Commit 961905ed authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

If there are no upgrades to be done, display the informational page.

parent 1df996af
......@@ -30,6 +30,9 @@ define('INSTALLER', 1);
require(dirname(dirname(__FILE__)).'/init.php');
$upgrades = check_upgrades();
if (!$upgrades) {
die_info(get_string('noupgrades', 'admin'));
}
$js = 'var todo = ' . json_encode(array_keys($upgrades)) . ";\n";
$loadingicon = theme_get_image_path('loading.gif');
......@@ -88,10 +91,7 @@ EOJS;
$smarty = smarty(array('mochikit'));
$smarty->assign('INLINEJAVASCRIPT', $js);
$smarty->assign_by_ref('upgrades', $upgrades);
$smarty->display('admin/upgrade.tpl');
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment