aboutsummaryrefslogtreecommitdiffstats
path: root/web/faq.cgi
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-02-23 22:25:33 +0000
committerEdmund von der Burg <evdb@mysociety.org>2011-02-23 22:25:33 +0000
commitfa5163eff32b66edb244f1d121cbec74469e3f48 (patch)
treeee550e0780c636c1165c5de59c7d67b606f05aab /web/faq.cgi
parent5cf138c1ace35dbc9cbce1279e1ddcb8a55fe513 (diff)
parent3a690ce84d1913872d56e46a8ecd3c7ad728072e (diff)
Merge branch 'master' into migrate_to_catalyst
Diffstat (limited to 'web/faq.cgi')
-rwxr-xr-xweb/faq.cgi12
1 files changed, 2 insertions, 10 deletions
diff --git a/web/faq.cgi b/web/faq.cgi
index 2046f6955..4d9c7413a 100755
--- a/web/faq.cgi
+++ b/web/faq.cgi
@@ -16,16 +16,8 @@ my $lastmodified = (stat $0)[9];
sub main {
my $q = shift;
print Page::header($q, title=>_('Frequently Asked Questions'));
- if ($q->{site} eq 'emptyhomes') {
- my $lang = $mySociety::Locale::lang;
- if ($lang eq 'cy') {
- print File::Slurp::read_file("$FindBin::Bin/../templates/website/faq-eha.cy.html");
- } else {
- print File::Slurp::read_file("$FindBin::Bin/../templates/website/faq-eha.html");
- }
- } else {
- print File::Slurp::read_file("$FindBin::Bin/../templates/website/faq.html");
- }
+ my $lang = $mySociety::Locale::lang;
+ print Page::template_include("faq-$lang", $q, Page::template_root($q));
print Page::footer($q);
}
Page::do_fastcgi(\&main, $lastmodified);