Module: appdb
Branch: master
Commit: b7189e4f5973266a71426b82b816270931c4d403
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=b7189e4f5973266a71426b82…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com>
Date: Tue Oct 23 01:40:46 2007 +0200
Use standard error page when not logged in on the queued items page
---
queueditems.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/queueditems.php b/queueditems.php
index 51435c5..4a226bc 100644
--- a/queueditems.php
+++ b/queueditems.php
@@ -11,7 +11,7 @@ require_once(BASE."include/appData.php");
$oUser = new User($_SESSION['current']->iUserId);
if(!$oUser->isLoggedIn())
- util_show_error_page_and_exit("You need to log in to view your queued items.");
+ util_show_error_page_and_exit();
apidb_header("View Your Queued Items");
Module: appdb
Branch: master
Commit: c009863461221e85f67945d3af807ec17dea06f0
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=c009863461221e85f67945d3…
Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com>
Date: Tue Oct 23 00:41:46 2007 +0200
Add login link to standard error page login text
---
include/util.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/util.php b/include/util.php
index bc4603f..99362ac 100644
--- a/include/util.php
+++ b/include/util.php
@@ -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");