vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r17166: LJSUP-6482: added disable flag to hide r...

Committer: vsukhanov
LJSUP-6482: added disable flag to hide russian providers.
U   trunk/cgi-bin/LJ/TextMessage.pm
Modified: trunk/cgi-bin/LJ/TextMessage.pm
===================================================================
--- trunk/cgi-bin/LJ/TextMessage.pm	2010-08-20 06:44:52 UTC (rev 17165)
+++ trunk/cgi-bin/LJ/TextMessage.pm	2010-08-20 07:56:55 UTC (rev 17166)
@@ -882,25 +882,28 @@
         'msglimit'      => 480,
         'totlimit'      => 500,
     },
-    'beeline'   => {
+);
+
+## ADD Russian providers
+unless ($LJ::DISALBED{'smsru-notifications'}){
+    $providers{'beeline'} => {
         'name'          => 'Beeline Russia',
         'notes'         => 'Russia only',
         'fromlimit'     => 0,
         'msglimit'      => 0,
         'totlimit'      => 0,
         'api'           => 'LJ::SMS::API::RU',
-        },
-    'megafon'   => {
+        };
+    $providers{'megafon'} = {
         'name'          => 'Megafon Russia',
         'notes'         => 'Russia only',
         'fromlimit'     => 0,
         'msglimit'      => 0,
         'totlimit'      => 0,
         'api'           => 'LJ::SMS::API::RU',
-        },
+        };
+};
 
-);
-
 sub providers
 {
     my %uniq_keys = map { remap($_) => 1 } keys %providers;

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