mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
pkgbasefuncs.inc.php: Fix leftover bits
Fix some places that incorrectly referred to packages instead of package bases. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
434b04e826
commit
1486f8067a
1 changed files with 3 additions and 3 deletions
|
@ -135,7 +135,7 @@ function pkgbase_add_comment($base_id, $uid, $comment) {
|
||||||
* user who posted the comment was in.
|
* user who posted the comment was in.
|
||||||
*/
|
*/
|
||||||
$body =
|
$body =
|
||||||
'from ' . $AUR_LOCATION . get_pkg_uri($row['Name']) . "\n"
|
'from ' . $AUR_LOCATION . get_pkgbase_uri($row['Name']) . "\n"
|
||||||
. username_from_sid($_COOKIE['AURSID']) . " wrote:\n\n"
|
. username_from_sid($_COOKIE['AURSID']) . " wrote:\n\n"
|
||||||
. $comment
|
. $comment
|
||||||
. "\n\n---\nIf you no longer wish to receive notifications about this package, please go the the above package page and click the UnNotify button.";
|
. "\n\n---\nIf you no longer wish to receive notifications about this package, please go the the above package page and click the UnNotify button.";
|
||||||
|
@ -384,7 +384,7 @@ function pkgbase_flag($atype, $base_ids) {
|
||||||
$result = $dbh->query($q);
|
$result = $dbh->query($q);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||||
$body = "Your package " . $row['Name'] . " has been flagged out of date by " . $f_name . " [1]. You may view your package at:\n" . $AUR_LOCATION . get_pkg_uri($row['Name']) . "\n\n[1] - " . $AUR_LOCATION . get_user_uri($f_name);
|
$body = "Your package " . $row['Name'] . " has been flagged out of date by " . $f_name . " [1]. You may view your package at:\n" . $AUR_LOCATION . get_pkgbase_uri($row['Name']) . "\n\n[1] - " . $AUR_LOCATION . get_user_uri($f_name);
|
||||||
$body = wordwrap($body, 70);
|
$body = wordwrap($body, 70);
|
||||||
$headers = "MIME-Version: 1.0\r\n" .
|
$headers = "MIME-Version: 1.0\r\n" .
|
||||||
"Content-type: text/plain; charset=UTF-8\r\n" .
|
"Content-type: text/plain; charset=UTF-8\r\n" .
|
||||||
|
@ -594,7 +594,7 @@ function pkgbase_adopt ($atype, $base_ids, $action=true) {
|
||||||
$dbh->exec($q);
|
$dbh->exec($q);
|
||||||
|
|
||||||
if ($action) {
|
if ($action) {
|
||||||
pkgbase_notify(account_from_sid($_COOKIE["AURSID"]), $pkg_ids);
|
pkgbase_notify(account_from_sid($_COOKIE["AURSID"]), $base_ids);
|
||||||
return array(true, __("The selected packages have been adopted."));
|
return array(true, __("The selected packages have been adopted."));
|
||||||
} else {
|
} else {
|
||||||
return array(true, __("The selected packages have been disowned."));
|
return array(true, __("The selected packages have been disowned."));
|
||||||
|
|
Loading…
Add table
Reference in a new issue