журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[livejournal] r22996: LJSUP-13769: S2 styles Journal Promo blo...

Committer: nnikulochkina
LJSUP-13769: S2 styles Journal Promo block
U   trunk/cgi-bin/LJ/S2.pm
Modified: trunk/cgi-bin/LJ/S2.pm
===================================================================
--- trunk/cgi-bin/LJ/S2.pm	2012-09-27 14:35:23 UTC (rev 22995)
+++ trunk/cgi-bin/LJ/S2.pm	2012-09-28 06:01:57 UTC (rev 22996)
@@ -5367,6 +5367,8 @@
 sub Page__render_journalpromo {
     my ($ctx, $this) = @_;
 
+    return 0 if $LJ::S2::CURR_PAGE->{'view'} !~ /^recent|entry$/;
+
     return 0 if $LJ::REQ_GLOBAL{'journalpromo_showed'}++;
     
     my $rendered = Page__journalpromo($ctx, $this);
@@ -5378,4 +5380,6 @@
 *RecentPage__render_journalpromo = \&Page__render_journalpromo;
 *EntryPage__render_journalpromo = \&Page__render_journalpromo;
 
+sub FriendsPage__render_journalpromo {0}
+
 1;

Tags: livejournal, nikulochkina, nnikulochkina, pm
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