vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[ljcom] r8375: LJSUP-5591: QotD stuff (revert changes)

Committer: vsukhanov
LJSUP-5591: QotD stuff (revert changes)
U   trunk/cgi-bin/LJ/Hooks/QotD.pm
Modified: trunk/cgi-bin/LJ/Hooks/QotD.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/QotD.pm	2010-03-26 09:33:03 UTC (rev 8374)
+++ trunk/cgi-bin/LJ/Hooks/QotD.pm	2010-03-26 09:40:26 UTC (rev 8375)
@@ -328,10 +328,8 @@
 
 LJ::register_hook("promo_with_qotd", sub {
     my $domain = shift;
-    return "" unless $domain;
-    return LJ::Widget::PromoText->render( domain => $domain eq "homepage" 
-                                                    ? "mini" 
-                                                    : "miniverticals-$domain"); 
+    return "" if not $domain or $domain eq 'homepage';
+    return LJ::Widget::PromoText->render( domain => "miniverticals-$domain" ); 
 });
 
 #### Begin hooks for Leap Year ####

Tags: ljcom, 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