Committer: atyurin
LJSUP-12745: Replace windows (pop-up) in RTE with the new windows (from HTML tab)U trunk/cgi-bin/weblib.pl
Modified: trunk/cgi-bin/weblib.pl =================================================================== --- trunk/cgi-bin/weblib.pl 2012-07-11 08:44:05 UTC (rev 22418) +++ trunk/cgi-bin/weblib.pl 2012-07-11 09:14:51 UTC (rev 22419) @@ -1,4 +1,4 @@ -#!/usr/bin/perl + #!/usr/bin/perl # package LJ; @@ -2168,6 +2168,7 @@ $canmakepoll = "false" if ($remote && !LJ::get_cap($remote, 'makepoll')); $ret .= "<script type='text/javascript'>\n"; $ret .= " var RTEdisabled = new Array();\n"; + LJ::need_var(makepoll => $canmakepoll eq 'true'? 1 : 0); my $rte_disabled = $LJ::DISABLED{rte_buttons} || {}; foreach my $key (keys %$rte_disabled) { $ret .= " RTEdisabled['$key'] = true;" if $rte_disabled->{$key};