madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r11014: LJSUP-9695: disable free tokens

Committer: sbelyaev
LJSUP-9695: disable free tokens
U   trunk/cgi-bin/LJ/Widget/Shop/View/Wallet.pm
Modified: trunk/cgi-bin/LJ/Widget/Shop/View/Wallet.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Shop/View/Wallet.pm	2011-09-16 09:04:35 UTC (rev 11013)
+++ trunk/cgi-bin/LJ/Widget/Shop/View/Wallet.pm	2011-09-19 03:52:15 UTC (rev 11014)
@@ -134,10 +134,15 @@
 }
 
 sub __is_free_tokens_enabled {
-    my $u_sapato = LJ::load_user("test");
+    my $u_sapato = LJ::load_user( $LJ::SAPATO_USER );
     if ( !$u_sapato ) {
         return 0;
     }
+    
+    if ( $LJ::DISABLED{'sapato'} )
+    {
+        return 0; 
+    }
 
     if (!LJ::SUP->is_remote_sup) {
         return 0;

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