sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[livejournal] r22826: LJSUP-13408: Make HTML layout for PromoS...

Committer: vtroitsky
LJSUP-13408: Make HTML layout for PromoStrip & S1 comments page block
U   trunk/cgi-bin/LJ/ControlStrip.pm
Modified: trunk/cgi-bin/LJ/ControlStrip.pm
===================================================================
--- trunk/cgi-bin/LJ/ControlStrip.pm	2012-09-06 12:40:56 UTC (rev 22825)
+++ trunk/cgi-bin/LJ/ControlStrip.pm	2012-09-06 13:07:10 UTC (rev 22826)
@@ -313,10 +313,11 @@
     $data_control_strip->{site_messages} = LJ::Widget::SiteMessages->should_render
                                            ? LJ::Widget::SiteMessages->render
                                            : '';
-
-    $data_control_strip->{promo_strip} = LJ::Widget::JournalPromoStrip->should_render(remote => $remote, journal => $journal)
+    if (LJ::is_enabled('journalpromo')) {
+        $data_control_strip->{promo_strip} = LJ::Widget::JournalPromoStrip->should_render(remote => $remote, journal => $journal)
                                             ? LJ::Widget::JournalPromoStrip->render(remote => $remote, journal => $journal)
                                             : '';
+    }
 
     {
         my $extra_cells;

Tags: livejournal, pm, sunnyman, vtroitsky
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