aboutsummaryrefslogtreecommitdiffstats
path: root/web/faq.cgi
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-22 14:26:42 +0000
committerMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-22 14:26:42 +0000
commitf1ffda42b62b378814f0c9aa96a8d48778a251dd (patch)
tree8d2ae06c36bd4636d78718cf629e846c0a2afa70 /web/faq.cgi
parenta88db262384d3800c36589bb6d1a933b9319e2df (diff)
Better FAQ templating.
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);