holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12165: LJSUP-12413: New promo product - Promo i...

Committer: akanashin
LJSUP-12413: New promo product - Promo in notifications
U   trunk/cgi-bin/LJ/Event/SupOfficialPost.pm
U   trunk/cgi-bin/LJ/Event/UserPurging.pm
U   trunk/cgi-bin/LJ/Hooks/ESN.pm
Modified: trunk/cgi-bin/LJ/Event/SupOfficialPost.pm
===================================================================
--- trunk/cgi-bin/LJ/Event/SupOfficialPost.pm	2012-06-25 06:27:06 UTC (rev 12164)
+++ trunk/cgi-bin/LJ/Event/SupOfficialPost.pm	2012-06-25 07:32:09 UTC (rev 12165)
@@ -50,4 +50,6 @@
            };
 }
 
+sub show_promo { 0 }
+
 1;

Modified: trunk/cgi-bin/LJ/Event/UserPurging.pm
===================================================================
--- trunk/cgi-bin/LJ/Event/UserPurging.pm	2012-06-25 06:27:06 UTC (rev 12164)
+++ trunk/cgi-bin/LJ/Event/UserPurging.pm	2012-06-25 07:32:09 UTC (rev 12165)
@@ -151,4 +151,6 @@
            };
 }
 
+sub show_promo { 0 }
+
 1;

Modified: trunk/cgi-bin/LJ/Hooks/ESN.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/ESN.pm	2012-06-25 06:27:06 UTC (rev 12164)
+++ trunk/cgi-bin/LJ/Hooks/ESN.pm	2012-06-25 07:32:09 UTC (rev 12165)
@@ -46,8 +46,10 @@
         $html_body = $frame_tmpl->output();
     }
 
-    $html_body  .= LJ::run_hook('add_notificationpromo', $u, 'html');
-    $plain_body .= LJ::run_hook('add_notificationpromo', $u, 'plaintext');
+    if( $ev->show_promo ) {
+        $html_body  .= LJ::run_hook('add_notificationpromo', $u, 'html');
+        $plain_body .= LJ::run_hook('add_notificationpromo', $u, 'plaintext');
+    }
 
     if( $ev->need_standard_footer ) {
         $html_body .= $footer;

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