Bug 7026 Web installer does not switch language
[koha-equinox.git] / installer / InstallAuth.pm
index 3918698..2c07bbe 100644 (file)
@@ -163,13 +163,7 @@ sub _get_template_language {
   my ($opaclang)= @_;
   return 'en' unless $opaclang;
   my $path= C4::Context->config('intrahtdocs')."/prog/$opaclang";
-  my $pref= ','.C4::Context->preference('language').',';
-  if(-d $path) {
-    if($pref =~ /,$opaclang,/ ) {
-      return $opaclang;
-    }
-  }
-  return 'en';
+  -d $path ? $opaclang : 'en';
 }
 
 =item checkauth