Loading components/bananas.php +1 −1 Original line number Diff line number Diff line Loading @@ -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"); Loading @@ -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); Loading lib/banana-admin.php +1 −1 Original line number Diff line number Diff line Loading @@ -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); Loading Loading
components/bananas.php +1 −1 Original line number Diff line number Diff line Loading @@ -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"); Loading @@ -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); Loading
lib/banana-admin.php +1 −1 Original line number Diff line number Diff line Loading @@ -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); Loading