diff options
author | Louise Crow <louise@mysociety.org> | 2010-02-10 17:57:13 +0000 |
---|---|---|
committer | Louise Crow <louise@mysociety.org> | 2010-02-10 17:57:13 +0000 |
commit | 41dc86821ab43ac203241493dd0fae69c7f65e00 (patch) | |
tree | 62f94f0164d878b71243a8c378911b650ef62fc0 | |
parent | 53eb5f404695a0c9e788bb1f737054ce3dc7f1ee (diff) |
Use error template to display error
-rwxr-xr-x | web/alert.cgi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/alert.cgi b/web/alert.cgi index 61a6fe7c2..59b6607a4 100755 --- a/web/alert.cgi +++ b/web/alert.cgi @@ -40,6 +40,10 @@ sub main { Thank you for trying to confirm your alert. 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; + } } elsif ($q->param('rss')) { $out = alert_rss($q); |