juks (juks) wrote in changelog,
juks
juks
changelog

[livejournal] r18203: LJSV-1382 Inbox

Committer: iaskarov
LJSV-1382 Inbox
U   trunk/cgi-bin/weblib.pl
Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2011-02-03 11:03:49 UTC (rev 18202)
+++ trunk/cgi-bin/weblib.pl	2011-02-03 11:05:21 UTC (rev 18203)
@@ -2479,12 +2479,12 @@
     my @strings = @_;
   
     for my $item (@strings) {
-        # When comes as a hash should be treated as key => value
+        # When comes as a hash ref, should be treated as name => value
         if(ref $item eq 'HASH') {
             for my $key (keys %$item) {
                 $LJ::JSML{$key} = $item->{$key};
             }
-        # When handling array, name the ml by the value of the second element
+        # When handling array ref, name the ml by the value of the second element
         } elsif(ref $item eq 'ARRAY') {
             $LJ::JSML{$$item[1]} = LJ::Lang::ml($$item[0]);
         # If scalar - use the ml named this way

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