Bug 6205 : Fix for the installer, falling back to english
authorChris Cormack <chrisc@catalyst.net.nz>
Tue, 19 Apr 2011 10:05:53 +0000 (22:05 +1200)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 19 Apr 2011 10:05:53 +0000 (22:05 +1200)
C4/Templates.pm

index ea11aee..8939be5 100644 (file)
@@ -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;