Add login link to standard error page login text

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-10-23 00:41:46 +02:00
committed by Chris Morgan
parent 9069952d91
commit c009863461

View File

@@ -5,7 +5,7 @@
function util_show_error_page_and_exit($text = null, $message = null)
{
if (!$text) {
$text = "You must be logged in to perform that operation.";
$text = "You must be <a href=\"".login_url()."\">logged in</a> to perform that operation.";
}
header("HTTP/1.0 404 Object not found or user is not logged in");
apidb_header("Oops");