2heoh (2heoh) wrote in changelog,
2heoh
2heoh
changelog

[ljcom] r11159: LJM-1948: m.livejournal.com Polls: vote ...

Committer: slobin
LJM-1948: m.livejournal.com Polls: vote and view results

M PollOfTheDay.pm
U   trunk/cgi-bin/LJ/Widget/PollOfTheDay.pm
Modified: trunk/cgi-bin/LJ/Widget/PollOfTheDay.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/PollOfTheDay.pm	2011-11-08 11:44:32 UTC (rev 11158)
+++ trunk/cgi-bin/LJ/Widget/PollOfTheDay.pm	2011-11-09 09:08:48 UTC (rev 11159)
@@ -54,7 +54,6 @@
         next unless $q->type eq 'radio';
         push @good, [$e->journalid, $e->ditemid];
     }
-
     LJ::MemCache::set($memkey, \@good, 60); # 1 min
 
     return @good;
@@ -67,7 +66,6 @@
 sub render_body {
     my $class = shift;
     my %opts = @_;
-
     my ($poll_hoster, $memkey);
     if ($opts{vertical_account}) {
         return if $LJ::DISABLED{'poll_in_vertical'};
@@ -95,7 +93,6 @@
     
     $event =~ /<lj-poll-(\d+)>/s;
     my $pollid = $1;
-
     return unless $pollid;
     my $poll = LJ::Poll->new($pollid);
 
@@ -130,7 +127,7 @@
     $ret .= "<input type='hidden' value='$opts{vertical_name}' name='vertical_name' />";
     $ret .= '<p class="b-potd-note">' . $class->ml('widget.polloftheday.anonymously') . '</p>' if $poll->whoview eq 'none';
 
-    $ret .= $poll->render(widget => 1, scroll_links => $scrolls, poll_pic => $pollpic); # mode will be auto-detected
+    $ret .= $poll->render_new(widget => 1, scroll_links => $scrolls, poll_pic => $pollpic); # mode will be auto-detected
 
     $ret .= '</div>';
     $ret .= '<p class="b-potd-note">' . $class->ml('widget.polloftheday.log_in_to_vote') . '</p>' unless LJ::get_remote();

Tags: 2heoh, ljcom, pm, slobin
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