aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Page.pm
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-04-07 11:02:30 +0100
committerEdmund von der Burg <evdb@mysociety.org>2011-04-07 11:02:30 +0100
commit8605c2ccddb3aff126294616354731f2b17f160c (patch)
treedf6e36b84c7a691315244c18c00a9ca4a022d8bf /perllib/Page.pm
parent0cfc305bb7f38f00a7f4c1ae842ec653fb0e118f (diff)
port all footer templates to TT2 (excluding cities)
Diffstat (limited to 'perllib/Page.pm')
-rw-r--r--perllib/Page.pm10
1 files changed, 1 insertions, 9 deletions
diff --git a/perllib/Page.pm b/perllib/Page.pm
index 3014d74d8..4c83c4966 100644
--- a/perllib/Page.pm
+++ b/perllib/Page.pm
@@ -324,6 +324,7 @@ sub tt2_template_include {
# fake parts of the config that the templates need
$params->{c}{config}{STAGING_SITE} = mySociety::Config::get('STAGING_SITE');
+ $params->{c}{req}{uri}{path} = $ENV{REQUEST_URI};
my $html = '';
@@ -400,12 +401,6 @@ sub footer {
my $pc = $q->param('pc') || '';
$pc = '?pc=' . URI::Escape::uri_escape_utf8($pc) if $pc;
-# if ( mySociety::Config::get('COUNTRY') eq 'NO' ) {
-# $creditline = _(
-# 'Built by <a href="http://www.mysociety.org/">mySociety</a> and maintained by <a href="http://www.nuug.no/">NUUG</a>, using some <a href="http://github.com/mysociety/fixmystreet">clever</a>&nbsp;<a href="https://secure.mysociety.org/cvstrac/dir?d=mysociety/services/TilMa">code</a>.'
-# );
-# }
-
%params = (
%params,
# navigation => _('Navigation'),
@@ -415,9 +410,6 @@ sub footer {
# help => _("Help"),
# contact => _("Contact"),
pc => $pc,
-# orglogo => _(
-# '<a href="http://www.mysociety.org/"><img id="logo" width="133" height="26" src="/i/mysociety-dark.png" alt="View mySociety.org"><span id="logoie"></span></a>'
-# ),
);
my $html = tt2_template_include( 'footer.html', $q, \%params );