vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r16461: LJSUP-5591: added 'nopromo' option to di...

Committer: vsukhanov
LJSUP-5591: added 'nopromo' option to disable promo block in qotd widget
U   trunk/cgi-bin/LJ/Widget/QotD.pm
Modified: trunk/cgi-bin/LJ/Widget/QotD.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/QotD.pm	2010-03-26 08:41:01 UTC (rev 16460)
+++ trunk/cgi-bin/LJ/Widget/QotD.pm	2010-03-26 10:00:14 UTC (rev 16461)
@@ -58,7 +58,7 @@
         $ret .= $class->qotd_display( questions => \@questions, user => $u, %opts );
         $ret .= '</div>';
         # show promo on vertical pages
-        $ret .= LJ::run_hook("promo_with_qotd", $opts{domain});
+        $ret .= LJ::run_hook("promo_with_qotd", $opts{domain}) unless $opts{nopromo};
     }
 
     return $ret;

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