From 378602e4fa52db04d245ce1a7917591867a783f6 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 19 Apr 2011 22:05:53 +1200 Subject: [PATCH] Bug 6205 : Fix for the installer, falling back to english --- C4/Templates.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Templates.pm b/C4/Templates.pm index ea11aeebdb..8939be59d4 100644 --- a/C4/Templates.pm +++ b/C4/Templates.pm @@ -188,7 +188,7 @@ sub themelanguage { @languages = ( $lang, @languages ); } else { - $lang = $languages[0]; + $lang = $languages[0] || 'en'; } my $theme = 'prog'; # in the event of theme failure default to 'prog' -fbcit my $dbh = C4::Context->dbh; -- 2.39.5