[livejournal] r19660: LJSUP-9359: maxlength instead of max
Committer: vtroitsky
LJSUP-9359: maxlength instead of max U trunk/cgi-bin/LJ/Poll/Question.pm
Modified: trunk/cgi-bin/LJ/Poll/Question.pm
===================================================================
--- trunk/cgi-bin/LJ/Poll/Question.pm 2011-08-09 07:56:02 UTC (rev 19659)
+++ trunk/cgi-bin/LJ/Poll/Question.pm 2011-08-09 08:04:19 UTC (rev 19660)
@@ -220,9 +220,9 @@
@{$res->{items}} = map { delete $_->{pollid}; delete $_->{pollqid}; $_ } @items if (@items);
if ($self->type eq 'text') {
- my ($size, $max) = split(m!/!, $opts);
+ my ($size, $maxlength) = split(m!/!, $opts);
$res->{size} = $size;
- $res->{max} = $max;
+ $res->{maxlength} = $maxlength;
} elsif ($self->type eq 'scale') {
my ($from, $to, $by) = split(m!/!, $opts);
$by ||= 1;
@@ -244,8 +244,8 @@
my $opts = $self->opts;
if ($self->type eq 'text') {
- my ($size,$max) = split(m!/!, $opts);
- $attrs .= ' size="'.$size.'" maxlength="'.$max.'"';
+ my ($size,$maxlength) = split(m!/!, $opts);
+ $attrs .= ' size="'.$size.'" maxlength="'.$maxlength.'"';
} elsif ($self->type eq 'scale') {
my ($from, $to, $by) = split(m!/!, $opts);
$by ||= 1;
