Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r20012: LJSUP-9653 (ljlang refactoring)

Committer: ailyin
LJSUP-9653 (ljlang refactoring)
U   trunk/cgi-bin/LJ/Lang.pm
Modified: trunk/cgi-bin/LJ/Lang.pm
===================================================================
--- trunk/cgi-bin/LJ/Lang.pm	2011-09-09 05:30:04 UTC (rev 20011)
+++ trunk/cgi-bin/LJ/Lang.pm	2011-09-12 00:59:35 UTC (rev 20012)
@@ -665,7 +665,7 @@
             ([^\[]+?)   # the key
             \]\]        # closing literal ']]'
         }
-        {$vars->{$1} || "[$1]"}xeg;
+        { defined $vars->{$1} ? $vars->{$1} : "[$1]" }xeg;
     }
 
     $LJ::_ML_USED_STRINGS{$code} = $text if $LJ::IS_DEV_SERVER;

Tags: andy, livejournal, pm
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