summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2018-10-26 16:05:40 +0200
committerEli Schwartz <eschwartz@archlinux.org>2018-10-26 16:10:00 +0200
commitf1d109e9b6863d924d2cb20f83e41d7091d62e20 (patch)
tree43c24233374ac50e220b0b0fafa68ea648557efc /web/lib
parentf046dd58285173fcc1c8411095c000046e92e200 (diff)
downloadaur-f1d109e9b6863d924d2cb20f83e41d7091d62e20.tar.gz
aur-f1d109e9b6863d924d2cb20f83e41d7091d62e20.tar.xz
Fix notifications emails going to the right people, part #2
Notifications are still going to the wrong people. We tried to fix this in commit b702e5c0e7f13103fc764b7e5613f78f3e7acd30, but only fixed it for the python callers. There's another caller in the php code, which needs to use the right order of arguments as well. Fixes FS#60601 Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/pkgbasefuncs.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/lib/pkgbasefuncs.inc.php b/web/lib/pkgbasefuncs.inc.php
index b39bca5b..1df21a2b 100644
--- a/web/lib/pkgbasefuncs.inc.php
+++ b/web/lib/pkgbasefuncs.inc.php
@@ -733,7 +733,7 @@ function pkgbase_adopt ($base_ids, $action=true, $via) {
}
foreach ($base_ids as $base_id) {
- notify(array($action ? 'adopt' : 'disown', $base_id, $uid));
+ notify(array($action ? 'adopt' : 'disown', $uid, $base_id));
}
if ($action) {
@@ -1204,7 +1204,7 @@ function pkgbase_set_comaintainers($base_id, $users, $override=false) {
foreach ($uids_new as $uid) {
if (in_array($uid, $uids_add)) {
$q = sprintf("INSERT INTO PackageComaintainers (PackageBaseID, UsersID, Priority) VALUES (%d, %d, %d)", $base_id, $uid, $i);
- notify(array('comaintainer-add', $base_id, $uid));
+ notify(array('comaintainer-add', $uid, $base_id));
} else {
$q = sprintf("UPDATE PackageComaintainers SET Priority = %d WHERE PackageBaseID = %d AND UsersID = %d", $i, $base_id, $uid);
}
@@ -1216,7 +1216,7 @@ function pkgbase_set_comaintainers($base_id, $users, $override=false) {
foreach ($uids_rem as $uid) {
$q = sprintf("DELETE FROM PackageComaintainers WHERE PackageBaseID = %d AND UsersID = %d", $base_id, $uid);
$dbh->exec($q);
- notify(array('comaintainer-remove', $base_id, $uid));
+ notify(array('comaintainer-remove', $uid, $base_id));
}
return array(true, __("The package base co-maintainers have been updated."));