diff options
author | Andrew Dolgov <[email protected]> | 2007-03-22 07:42:39 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-03-22 07:42:39 +0100 |
commit | a190ebfde1ea6b8e1ebc8a0f6acb2a019aa369c3 (patch) | |
tree | a160523954a5ed4c77071600e0fb26215c834a2b /update.php | |
parent | be0801a1619981931c813346b53de2d9f29bcede (diff) |
updater: render login form on access level violation (closes #123)
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/update.php b/update.php index 27cd871f9..3851679ac 100644 --- a/update.php +++ b/update.php @@ -20,8 +20,8 @@ $owner_uid = $_SESSION["uid"]; if (!SINGLE_USER_MODE && $_SESSION["access_level"] < 10) { - print "<p>". - __("Error: your access level is insufficient to run this script.")."</p>"; + $_SESSION["login_error_msg"] = __("Your access level is insufficient to run this script."); + render_login_form($link); exit; } |