Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[ljcom] r10970: LJSUP-9157: Self promo

Committer: gariev
LJSUP-9157: Self promo
U   trunk/cgi-bin/LJ/Pay/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Pay/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/SelfPromo.pm	2011-09-06 13:49:36 UTC (rev 10969)
+++ trunk/cgi-bin/LJ/Pay/SelfPromo.pm	2011-09-06 13:55:40 UTC (rev 10970)
@@ -570,12 +570,13 @@
         }
 
     }
-
+    
+    my $lang = $poster->prop('browselang') || $LJ::DEFAULT_LANG;
     my $subject =
-        LJ::Lang::get_text( $LJ::DEFAULT_LANG, "$ml_var.subject", undef,
+        LJ::Lang::get_text( $lang, "$ml_var.subject", undef,
         \%ml_params, );
 
-    my $body = LJ::Lang::get_text( $LJ::DEFAULT_LANG, "$ml_var.body", undef,
+    my $body = LJ::Lang::get_text( $lang, "$ml_var.body", undef,
         \%ml_params, );
 
     LJ::send_mail(

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