Skip to content

Commit

Permalink
Print cause area filter name
Browse files Browse the repository at this point in the history
  • Loading branch information
riceissa committed Sep 29, 2017
1 parent 9964ef5 commit 0ecf4f6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions access-portal/donorDonee.php
Expand Up @@ -10,9 +10,13 @@
}
if (!empty($_REQUEST['cause_area_filter'])) {
$causeAreaFilterString = $_REQUEST['cause_area_filter'];
} else {
$causeAreaFilterString = '';
}

print "<title>$donor donations made to $donee $causeAreaFilterStringHelper</title>";
print "<title>$donor donations made to $donee"
. ($causeAreaFilterString ? " (filtered to cause areas matching $causeAreaFilterString)" : '')
. "</title>";
include_once('analytics.inc');
include_once('strip-commas.inc');
include_once('backend/stringFunctions.inc');
Expand All @@ -29,7 +33,9 @@
$("table").tablesorter({textExtraction: stripCommas});
}
); </script>'."\n";
print "<h3>$donor donations made to $donee $causeAreaFilterStringHelper</h3>";
print "<h3>$donor donations made to $donee"
. ($causeAreaFilterString ? " (filtered to cause areas matching $causeAreaFilterString)" : '')
. "</h3>";
include_once('preamble.inc');
print '<h4>Table of contents</h4>';
print '<ul>';
Expand Down

0 comments on commit 0ecf4f6

Please sign in to comment.