فهرست منبع

The thing where it was suppose to fall back to English when the template
didnt exist was broken, fixed.

Morten Brix Pedersen 25 سال پیش
والد
کامیت
74ea686512
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      pisg.pl

+ 2 - 2
pisg.pl

@@ -944,13 +944,13 @@ sub template_text
 
     my $text;
 
+    $text = $T{$conf->{lang}}{$template};
+
     if (!$T{$conf->{lang}}{$template}) {
         # Fall back to English if the language template doesn't exist
         $text = $T{EN}{$template};
     }
 
-    $text = $T{$conf->{lang}}{$template};
-
     if (!$text) {
         die("No such template '$template' in language file.\n");
     }