Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[ljcom] r11176: LJSUP-10358: Small improvements of self ...

Committer: anazarov
LJSUP-10358: Small improvements of self promo page
U   trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm	2011-11-10 10:09:19 UTC (rev 11175)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm	2011-11-10 10:17:08 UTC (rev 11176)
@@ -27,8 +27,10 @@
     }
 
     my $buyout_cost      = LJ::Pay::SelfPromo->buyout_cost;
+    ## 12345678 --> 12 345 678
+    my $buyout_split = join ' ', ($buyout_cost =~ /^(.?.?.?)(...)*$/);
     my $ml_current_price = LJ::Lang::ml( '/shop/selfpromo.bml.current_price',
-        { 'price' => $buyout_cost } );
+        { 'price' => $buyout_split } );
     my $hide_buyout = 0;
     my $poster_cancel = 0;
 

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