Commit ec0f47d0 authored by Penny Leach's avatar Penny Leach
Browse files

admin page should only show run upgrades link if necessary

parent d0cbf332
......@@ -41,7 +41,7 @@ if (isset($upgrades['core']) && !empty($upgrades['core']->install)) {
}
// normal admin page starts here
$smarty->assign('upgrades', $upgrades);
$smarty->display('admin/index.tpl');
?>
......@@ -15,7 +15,9 @@
<li><a href="editsitepage.php">EditSitePages</a></li>
</ul>
{if $upgrades}
<p><a href="upgrade.php">Run upgrade</a></p>
{/if}
<p><a href="..">parent</a></p>
{include file='footer.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