appdb/. queueditems.php

WineHQ wineowner at wine.codeweavers.com
Wed Jan 17 19:40:12 CST 2007


ChangeSet ID:	30883
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2007/01/17 19:40:12

Modified files:
	.              : queueditems.php 

Log message:
	Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
	Fix display of queueditems.php by not including filter.php twice

Patch: http://cvs.winehq.org/patch.py?id=30883

Old revision  New revision  Changes     Path
 1.1           1.2           +6 -10      appdb/queueditems.php

Index: appdb/queueditems.php
diff -u -p appdb/queueditems.php:1.1 appdb/queueditems.php:1.2
--- appdb/queueditems.php:1.1	18 Jan 2007  1:40:12 -0000
+++ appdb/queueditems.php	18 Jan 2007  1:40:12 -0000
@@ -4,20 +4,16 @@
  * A list of the user's queued items
  */
 
-require("path.php");
-require(BASE."include/incl.php");
-require(BASE."include/filter.php");
-require(BASE."include/appData.php");
-
-apidb_header("View Your Queued Items");
+require_once("path.php");
+require_once(BASE."include/incl.php");
+require_once(BASE."include/appData.php");
 
 $oUser = new User($_SESSION['current']->iUserId);
 
 if(!$oUser->isLoggedIn())
-{
-    echo "You need to log in to display your queued items.";
-    apidb_footer();
-}
+    util_show_error_page_and_exit("You need to log in to view your queued items.");
+
+apidb_header("View Your Queued Items");
 
 /* Test data */
 if($sResult = testData::listSubmittedBy($oUser->iUserId))



More information about the wine-cvs mailing list