[ljcom] r11014: LJSUP-9695: disable free tokens
Committer: sbelyaev
LJSUP-9695: disable free tokensU 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;
