Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

[ljcom] r11424: LJSUP-10748: Free2pay

Committer: amyshkin
LJSUP-10748: Free2pay
U   trunk/cgi-bin/LJ/Hooks/ESN.pm
Modified: trunk/cgi-bin/LJ/Hooks/ESN.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/ESN.pm	2012-02-07 12:21:44 UTC (rev 11423)
+++ trunk/cgi-bin/LJ/Hooks/ESN.pm	2012-02-07 12:54:26 UTC (rev 11424)
@@ -24,6 +24,8 @@
     my $email_subject = $ev->as_email_subject($u);
     return undef unless $email_subject;
 
+    my $footer = LJ::run_hook('esn_email_footer', $ev, $u);
+
 # TODO: Yet no spec for AD system
 #    my $ads = LJ::get_ads({
 #        location   => 'email.bottom',
@@ -40,6 +42,10 @@
         $html_body = $frame_tmpl->output();
     }
 
+    if( $ev->need_standard_footer ) {
+        $html_body .= $footer;
+    }
+
     my %headers = (
         "X-LJ-Recipient" => $u->user,
         %{$ev->as_email_headers($u) || {}},

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