holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r22318: LJSUP-12413: New promo product - Promo i...

Committer: akanashin
LJSUP-12413: New promo product - Promo in notifications
U   trunk/cgi-bin/LJ/Event/OfficialPost.pm
U   trunk/cgi-bin/LJ/Event.pm
Modified: trunk/cgi-bin/LJ/Event/OfficialPost.pm
===================================================================
--- trunk/cgi-bin/LJ/Event/OfficialPost.pm	2012-06-25 06:26:38 UTC (rev 22317)
+++ trunk/cgi-bin/LJ/Event/OfficialPost.pm	2012-06-25 07:31:36 UTC (rev 22318)
@@ -199,4 +199,6 @@
            };
 }
 
+sub show_promo { 0 }
+
 1;

Modified: trunk/cgi-bin/LJ/Event.pm
===================================================================
--- trunk/cgi-bin/LJ/Event.pm	2012-06-25 06:26:38 UTC (rev 22317)
+++ trunk/cgi-bin/LJ/Event.pm	2012-06-25 07:31:36 UTC (rev 22318)
@@ -477,6 +477,12 @@
 # if ($evt->need_standard_footer) { $html .= BML::ml('esn.email.html.footer'); }
 sub need_standard_footer { 1 }
 
+# return a boolean value indicating that email notifications of this event need
+# a promo appended to them.
+#
+# this is a virtual function; the base class function returns 1 for "yes".
+sub show_promo { 1 }
+
 # return a string representing an "SMS" (TxtLJ) notification sent to the passed
 # user notifying them that this event has happened.
 #

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