aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorlouise <louise>2009-12-15 18:26:11 +0000
committerlouise <louise>2009-12-15 18:26:11 +0000
commit10e7ee4b404df43ff33643af6ce89dc0497d0a59 (patch)
treedcf1b7be4e1c08a7fa0336ccc10fe2176d77f17e /web
parent7213ef7d49e37915c073bff8068dc5581ae5bd92 (diff)
Template error message
Diffstat (limited to 'web')
-rwxr-xr-xweb/confirm.cgi8
1 files changed, 6 insertions, 2 deletions
diff --git a/web/confirm.cgi b/web/confirm.cgi
index b07aafdbd..c9447d982 100755
--- a/web/confirm.cgi
+++ b/web/confirm.cgi
@@ -6,7 +6,7 @@
# Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: confirm.cgi,v 1.65 2009-12-15 18:16:46 louise Exp $
+# $Id: confirm.cgi,v 1.66 2009-12-15 18:26:11 louise Exp $
use strict;
use Standard;
@@ -42,8 +42,12 @@ Thank you for trying to confirm your update or problem. We seem to have an
error ourselves though, so <a href="%s">please let us know what went on</a>
and we'll look into it.
EOF
- }
+ my %vars = (error => $out);
+ my $cobrand_page = Page::template_include('error', $q, Page::template_root($q), %vars);
+ $out = $cobrand_page if $cobrand_page;
+ }
+
print Page::header($q, title=>_('Confirmation'));
print $out;
print Page::footer($q, extra => $extra);