vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r17372: LJSUP-6482: SMS Notification RU

Committer: vsukhanov
LJSUP-6482: SMS Notification RU
U   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 11:19:35 UTC (rev 17371)
+++ trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm	2010-09-14 11:19:38 UTC (rev 17372)
@@ -22,9 +22,9 @@
 
     my @ntypes = @LJ::NOTIFY_TYPES;
     my (undef, $country) = LJ::GeoLocation->ip_class;
-    if (not $LJ::DISABLED{smsru} and
-        $country ne 'RU' and
-        not LJ::SMS::API::RU::Phone->is_users_number_supported($u)
+    if ($LJ::DISABLED{smsru} or
+        ($country ne 'RU' and
+         not LJ::SMS::API::RU::Phone->is_users_number_supported($u))
     ){
         @ntypes = grep { $_ ne 'LJ::NotificationMethod::SMSru' ? 1 : 0 } @ntypes;
     }

Tags: livejournal, pm, vadvs
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