alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r21122: LJSUP-10808: Top Entries in communities....

Committer: afedorov
LJSUP-10808: Top Entries in communities. Problems with display of entries

U   trunk/htdocs/admin/topentries.bml
Modified: trunk/htdocs/admin/topentries.bml
===================================================================
--- trunk/htdocs/admin/topentries.bml	2012-02-08 07:17:48 UTC (rev 21121)
+++ trunk/htdocs/admin/topentries.bml	2012-02-08 10:22:16 UTC (rev 21122)
@@ -23,7 +23,7 @@
 
     ## load actual data
     my $top_entries = LJ::TopEntries->new(domain => $domain);
-
+    $top_entries->{_post_loaded} = 0;
     ## Add new entry
     if ($POST{url}) {
         my $entry = LJ::Entry->new_from_url($POST{url});
@@ -122,6 +122,8 @@
     $ret .= '';
     $ret .= "</table><br />\n";
 
+    $top_entries->{_post_loaded} = 0;
+    $top_entries->{'featured_posts'} = undef;
     if (my @posts = $top_entries->get_featured_posts(raw => 1)){
         $ret .= qq|<h3>Added Posts</h3><ul id="delete-posts">|;
         $ret .= "<li><input type=\"checkbox\" name==\"selectall\" /> - Select all</li>";

Tags: afedorov, bml, livejournal, red_alf
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