<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>Laurence Sebastian Bowes pushed to branch master at <a href="https://projects.sucs.org/sucssite/sucs-site">sucssite / sucs-site</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://projects.sucs.org/sucssite/sucs-site/commit/5f85bd0dd8d58c1b0dc672a0a4431dd9beeefe3f">5f85bd0d</a></strong>
<div>
<span>by Laurence Sebastian Bowes</span>
<i>at 2015-11-11T16:07:28Z</i>
</div>
<pre class='commit-message'>Make the previous commit a little more robust and add some comments</pre>
</li>
</ul>
<h4>3 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
components/bananas.php
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
components/members.php
</a>
</li>
<li class='file-stats'>
<a href='#diff-2'>
lib/banana-admin.php
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://projects.sucs.org/sucssite/sucs-site/commit/5f85bd0dd8d58c1b0dc672a0a4431dd9beeefe3f#diff-0'>
<strong>
components/bananas.php
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/components/bananas.php
</span><span style="color: #000000;background-color: #ddffdd">+++ b/components/bananas.php
</span><span style="color: #aaaaaa">@@ -24,6 +24,7 @@ if (count($members->memberView($who)) > 0) {
</span>     header("Location: https://$preferred_hostname$baseurl/Community/Members/$who");
 } else {
     // banana admin bits
<span style="color: #000000;background-color: #ddffdd">+        // Tell the banana library that the person/organisation/thing we're dealing with isn't a SUCS member
</span>   $isnonmember = true;
     if ($mode == "detail") {
         if ($session->loggedin) {
</code></pre>

<br>
</li>
<li id='diff-1'>
<a href='https://projects.sucs.org/sucssite/sucs-site/commit/5f85bd0dd8d58c1b0dc672a0a4431dd9beeefe3f#diff-1'>
<strong>
components/members.php
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/components/members.php
</span><span style="color: #000000;background-color: #ddffdd">+++ b/components/members.php
</span><span style="color: #aaaaaa">@@ -32,7 +32,9 @@ if ($session->loggedin) {
</span>         if (count($usernames) == 1) {
             $smarty->assign('who', $usernames[0]['uid']);
             // Add banana widget to the sidebar
<span style="color: #000000;background-color: #ffdddd">-            $who = $usernames[0]['uid'];
</span><span style="color: #000000;background-color: #ddffdd">+                   $who = $usernames[0]['uid'];
+                       //Tell the banana library that we're dealing with a real member
+                       $isnonmember = false;
</span>             include("../lib/banana-admin.php");
             // Needs Redirection
             if ($uid) {
</code></pre>

<br>
</li>
<li id='diff-2'>
<a href='https://projects.sucs.org/sucssite/sucs-site/commit/5f85bd0dd8d58c1b0dc672a0a4431dd9beeefe3f#diff-2'>
<strong>
lib/banana-admin.php
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/lib/banana-admin.php
</span><span style="color: #000000;background-color: #ddffdd">+++ b/lib/banana-admin.php
</span><span style="color: #aaaaaa">@@ -51,6 +51,7 @@ if (isset($session->groups[$permission])) {
</span> 
         // Send a mail to someone about them bananas
         $msgbody = $session->username . " thinks $who deserves $number bananas:\r\n";
<span style="color: #000000;background-color: #ddffdd">+                //Make sure we send out the right link depending on whether they are a member or not
</span>         $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);
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://projects.sucs.org/sucssite/sucs-site/commit/5f85bd0dd8d58c1b0dc672a0a4431dd9beeefe3f">View it on GitLab</a>
<br>
You're receiving this email because of your account on <a href="https://projects.sucs.org/">projects.sucs.org</a>.
If you'd like to receive fewer emails, you can adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://projects.sucs.org/sucssite/sucs-site/commit/5f85bd0dd8d58c1b0dc672a0a4431dd9beeefe3f"}}</script>
</p>
</div>
</body>
</html>