www/adiumxtras.com 23:3064fd05d891: Allow for grabbing the pendi...
commits at adium.im
commits at adium.im
Mon Jun 1 20:21:55 UTC 2009
details: http://hg.adium.im/www/adiumxtras.com/rev/3064fd05d891
revision: 23:3064fd05d891
author: Zachary West <zacw at adium.im>
date: Mon Jun 01 16:21:50 2009 -0400
Allow for grabbing the pending list when not logged in, so I can RSS it into the IRC bot.
diffs (28 lines):
diff -r 30f71a496332 -r 3064fd05d891 search.php
--- a/search.php Thu May 07 13:39:11 2009 -0400
+++ b/search.php Mon Jun 01 16:21:50 2009 -0400
@@ -60,16 +60,14 @@
$searchTerms .= sprintf("xtras.user_id='%d' AND", $_GET['user_id']);
}
- if (array_search(userLevel(currentUID()), array("Admin", "Moderator", "Developer")) !== FALSE) {
- switch ($_GET['do']) {
- case "queue":
- $showApproved = " AND xtras.status='Pending'";
- if (array_search(userLevel(currentUID()), array("Admin", "Developer")) === FALSE)
- $showApproved .= " AND assoc.cat_id != 9";
- $smarty->assign("queue", 1);
- $smarty->assign("page", "queue");
- break;
- }
+ switch ($_GET['do']) {
+ case "queue":
+ $showApproved = " AND xtras.status='Pending'";
+ if (array_search(userLevel(currentUID()), array("Admin", "Developer")) === FALSE)
+ $showApproved .= " AND assoc.cat_id != 9";
+ $smarty->assign("queue", 1);
+ $smarty->assign("page", "queue");
+ break;
}
if ($keys)
More information about the commits
mailing list