журнал журнал (shhh) wrote in changelog,
журнал журнал
shhh
changelog

[livejournal] r22172: LJSUP-12474: Wrong error message for non...

Committer: nnikulochkina
LJSUP-12474: Wrong error message for non-translated errors
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2012-06-05 11:14:37 UTC (rev 22171)
+++ trunk/cgi-bin/ljprotocol.pl	2012-06-05 11:33:47 UTC (rev 22172)
@@ -230,7 +230,7 @@
     ($code, $des) = ($1, $2) if $code =~ /^(\d\d\d):(.+)/;
 
     my $prefix = "";
-    my $error = LJ::Lang::ml("xmlrpc.error.$code") || "BUG: Unknown error code ($code)!";
+    my $error = LJ::Lang::ml("xmlrpc.error.$code") || LJ::Lang::get_text(undef, "xmlrpc.error.$code") || "BUG: Unknown error code ($code)!";
     $prefix = LJ::Lang::ml('xmlrpc.client_error') if $code >= 200;
     $prefix = LJ::Lang::ml('xmlrpc.server_error') if $code >= 500;
     my $totalerror = "$prefix$error";

Tags: livejournal, nikulochkina, nnikulochkina, pl
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments