Committer: vsukhanov
LJSUP-6482: SMS Notification RUU trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm
Modified: trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm =================================================================== --- trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm 2010-09-14 08:19:58 UTC (rev 17369) +++ trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm 2010-09-14 09:52:54 UTC (rev 17370) @@ -22,7 +22,8 @@ my @ntypes = @LJ::NOTIFY_TYPES; my (undef, $country) = LJ::GeoLocation->ip_class; - if ($country ne 'RU' and + if (not $LJ::DISABLED{smsru} and + $country ne 'RU' and not LJ::SMS::API::RU::Phone->is_users_number_supported($u) ){ @ntypes = grep { $_ ne 'LJ::NotificationMethod::SMSru' ? 1 : 0 } @ntypes;