Commit 77deec6a authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix installation broken by previous commit 1bc1fee4

parent 1bc1fee4
......@@ -41,21 +41,22 @@ else {
require(get_config('libroot') . 'upgrade.php');
require(get_config('libroot') . 'registration.php');
if (!get_config('registration_lastsent')) {
$register = register_site();
}
$upgrades = check_upgrades();
$smarty = smarty();
if (isset($upgrades['core']) && !empty($upgrades['core']->install)) {
$smarty = smarty();
$smarty->assign('installing', true);
$smarty->assign('releaseargs', array($upgrades['core']->torelease, $upgrades['core']->to));
$smarty->display('admin/installgpl.tpl');
exit;
}
if (!get_config('registration_lastsent')) {
$register = register_site();
}
$smarty = smarty();
// normal admin page starts here
$smarty->assign('upgrades', $upgrades);
......
Supports Markdown
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