summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-11-10 19:55:34 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2015-11-12 11:47:20 +0100
commit0c599b39b0cead26550cea73194e950718a03d4a (patch)
treed5a692fcd3fd9ff5c95d91081f26f9e838c45b64
parent24734d06cefdeeb30c58beb52614a8498a089cb6 (diff)
downloadaurweb-0c599b39b0cead26550cea73194e950718a03d4a.tar.xz
Remove redundant code
This code is no longer needed since 9746a65 (Port notification routines to Python, 2015-06-27). Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r--web/lib/pkgbasefuncs.inc.php16
1 files changed, 1 insertions, 15 deletions
diff --git a/web/lib/pkgbasefuncs.inc.php b/web/lib/pkgbasefuncs.inc.php
index afccc7d..3c199d6 100644
--- a/web/lib/pkgbasefuncs.inc.php
+++ b/web/lib/pkgbasefuncs.inc.php
@@ -91,21 +91,7 @@ function pkgbase_add_comment($base_id, $uid, $comment) {
$q.= $dbh->quote($comment) . ", UNIX_TIMESTAMP())";
$dbh->exec($q);
- /*
- * Send e-mail notifications.
- * TODO: Move notification logic to separate function where it belongs.
- */
- $q = "SELECT CommentNotify.*, Users.Email ";
- $q.= "FROM CommentNotify, Users ";
- $q.= "WHERE Users.ID = CommentNotify.UserID ";
- $q.= "AND CommentNotify.UserID != " . $uid . " ";
- $q.= "AND CommentNotify.PackageBaseID = " . intval($base_id);
- $result = $dbh->query($q);
- $bcc = array();
-
- if ($result) {
- notify(array('comment', $uid, $base_id), $comment);
- }
+ notify(array('comment', $uid, $base_id), $comment);
return array(true, __('Comment has been added.'));
}