vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r16086: LJSUP-5128: generated adv code should be...

Committer: vsukhanov
LJSUP-5128: generated adv code should be added to html to avoid losting Fullscreen adv.
U   trunk/cgi-bin/LJ/Widget/VerticalHubHeader.pm
Modified: trunk/cgi-bin/LJ/Widget/VerticalHubHeader.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/VerticalHubHeader.pm	2010-01-12 11:22:41 UTC (rev 16085)
+++ trunk/cgi-bin/LJ/Widget/VerticalHubHeader.pm	2010-01-13 08:57:15 UTC (rev 16086)
@@ -22,8 +22,12 @@
     my @parents = $vertical->parents;
     my $parent = $parents[0];
 
-    my $ad = LJ::get_ads({ location => 'widget.verticalhubheader', vertical => $vertical->ad_name, page => $opts{page} });
-    my $show_leaderboard = $ad && LJ::run_hook("should_show_vertical_leaderboard", $remote) ? 1 : 0;
+    my $ad = '';
+    my $show_leaderboard = 0;
+    if (LJ::run_hook("should_show_vertical_leaderboard", $remote)){
+        $ad = LJ::get_ads({ location => 'widget.verticalhubheader', vertical => $vertical->ad_name, page => $opts{page} });
+        $show_leaderboard = 1 if $ad;
+    }
 
     if ($show_leaderboard) {
         $ret .= "<table class='title-box'><tr><td class='header-cell'>";

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