Committer: vtroitsky
LJSUP-13408: Make HTML layout for PromoStrip & S1 comments page blockU 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;