[livejournal] r18203: LJSV-1382 Inbox
Committer: iaskarov
LJSV-1382 InboxU 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
