Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r10925: LJSUP-9602 (Direct link to Self-promo pa...

Committer: ailyin
LJSUP-9602 (Direct link to Self-promo page for non-CYR users)
U   trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm
U   trunk/htdocs/shop/selfpromo.bml.text.local
Modified: trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm	2011-08-25 09:01:45 UTC (rev 10924)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm	2011-08-25 09:14:39 UTC (rev 10925)
@@ -19,6 +19,9 @@
 
     my $remote = LJ::get_remote();
 
+    $self->ml_error('/shop/selfpromo.bml.error.remote_non_sup')
+        unless LJ::SUP->is_remote_sup;
+
     my $buyout_cost      = LJ::Pay::SelfPromo->buyout_cost;
     my $ml_current_price = LJ::Lang::ml( '/shop/selfpromo.bml.current_price',
         { 'price' => $buyout_cost } );

Modified: trunk/htdocs/shop/selfpromo.bml.text.local
===================================================================
--- trunk/htdocs/shop/selfpromo.bml.text.local	2011-08-25 09:01:45 UTC (rev 10924)
+++ trunk/htdocs/shop/selfpromo.bml.text.local	2011-08-25 09:14:39 UTC (rev 10925)
@@ -24,6 +24,8 @@
 
 .error.price_invalid=[[price]] [[?price|LJ Token|LJ Tokens]] is an invalid price; price must be a multiple of 100.
 
+.error.remote_non_sup=This service is not available to the users who have not signed up for Cyrillic services at this time.
+
 .error.wallet_insufficient_funds=You only have [[have]] [[?have|LJ Token|LJ Tokens]] in your Wallet, which is not enough to pay [[need]] [[?need|LJ Token||LJ Tokens]] for promotion.
 
 .info.btn.withdraw=Withdraw

Tags: andy, ljcom, local, 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