summaryrefslogtreecommitdiffstats
path: root/web/lib/pkgfuncs.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-11-10 19:26:57 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2016-02-07 10:39:22 +0100
commit3412de21d32708b44d1fb3011649734e3cc67d9b (patch)
tree8124b4cad4d68a01a0d8aeff90c9e8584d173541 /web/lib/pkgfuncs.inc.php
parentdaee000604243b95e439167c97b3ee8cdc4f6ca3 (diff)
downloadaur-3412de21d32708b44d1fb3011649734e3cc67d9b.tar.gz
aur-3412de21d32708b44d1fb3011649734e3cc67d9b.tar.xz
Rename the CommentNotify table to PackageNotifications
As a preparatory step to adding support for package notifications on events other than comments, rename the database table accordingly. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/lib/pkgfuncs.inc.php')
-rw-r--r--web/lib/pkgfuncs.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index c2bbe387..0e152ddc 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -716,7 +716,7 @@ function pkg_search_page($SID="") {
/* Build the package search query. */
$q_select = "SELECT ";
if ($SID) {
- $q_select .= "CommentNotify.UserID AS Notify,
+ $q_select .= "PackageNotifications.UserID AS Notify,
PackageVotes.UsersID AS Voted, ";
}
$q_select .= "Users.Username AS Maintainer,
@@ -731,8 +731,8 @@ function pkg_search_page($SID="") {
/* This is not needed for the total row count query. */
$q_from_extra = "LEFT JOIN PackageVotes
ON (PackageBases.ID = PackageVotes.PackageBaseID AND PackageVotes.UsersID = $myuid)
- LEFT JOIN CommentNotify
- ON (PackageBases.ID = CommentNotify.PackageBaseID AND CommentNotify.UserID = $myuid) ";
+ LEFT JOIN PackageNotifications
+ ON (PackageBases.ID = PackageNotifications.PackageBaseID AND PackageNotifications.UserID = $myuid) ";
} else {
$q_from_extra = "";
}