Commit 54d868d5 authored by Laurence Sebastian Bowes's avatar Laurence Sebastian Bowes
Browse files

Fix sending out broken links in banana emails

parent c5648289
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ if (count($members->memberView($who)) > 0) {
    header("Location: https://$preferred_hostname$baseurl/Community/Members/$who");
} else {
    // banana admin bits
	$isnonmember = true;
    if ($mode == "detail") {
        if ($session->loggedin) {
            include("../lib/banana-admin.php");
@@ -37,7 +38,6 @@ if (count($members->memberView($who)) > 0) {
if (isset($who))
    $smarty->assign('who', "$who");


$smarty->assign('mode', "$mode");
$smarty->assign('users', $users);

+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ if (isset($session->groups[$permission])) {

        // Send a mail to someone about them bananas
        $msgbody = $session->username . " thinks $who deserves $number bananas:\r\n";
        $msgbody .= "\"$why\"\r\n\r\nVisit https://sucs.org/Community/Members/$who if you want to make an award.";
        $msgbody .= "\"$why\"\r\n\r\nVisit https://sucs.org/Community/" . ($isnonmember ? 'Bananas' : 'Members') . "/$who if you want to make an award.";
        mail($contact, "Banana Award Nomination", $msgbody, $msgheaders);
        $smarty->assign("awarded", TRUE);