wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17462: LJSUP-7003. Block "Phone" in the user pr...

Committer: gprochaev
LJSUP-7003. Block "Phone" in the user profile is not displayed correctly if you disable the Cyrillic Services

U   trunk/htdocs/manage/profile/index.bml
Modified: trunk/htdocs/manage/profile/index.bml
===================================================================
--- trunk/htdocs/manage/profile/index.bml	2010-09-29 03:34:50 UTC (rev 17461)
+++ trunk/htdocs/manage/profile/index.bml	2010-09-29 06:28:43 UTC (rev 17462)
@@ -502,7 +502,7 @@
             foreach (values %$tminfo) { LJ::text_out(\$_); }
             $tminfo->{'security'} = "N" if ($u->{'txtmsg_status'} eq 'off' || $u->{'txtmsg_status'} eq 'none');
 
-            if ($LJ::DISABLED{smsru} || !$is_remote_sup) {
+            if ($LJ::DISABLED{smsru} || LJ::GeoLocation->ip_country() ne 'RU') {
                 $ret .= "<span id='phone_view_options' class='view_options'>$ML{'.fn.txtmsg'}&nbsp;";
                 $ret .= LJ::html_select({ 'name' => 'txtmsg_security', 'selected' => $tminfo->{'security'} },
                                           "all" => BML::ml(".security.visibility.everybody"),
@@ -515,9 +515,9 @@
             }
 
             my $block_id = 'phone_verification';
-               $block_id = '' if $LJ::DISABLED{smsru} || !$is_remote_sup; ## empty block_id disables JS script
+               $block_id = '' if $LJ::DISABLED{smsru} || LJ::GeoLocation->ip_country() ne 'RU'; ## empty block_id disables JS script
             $ret .= "<table class='field_block' id='$block_id'>\n";
-            if ($LJ::DISABLED{smsru} || !$is_remote_sup) {
+            if ($LJ::DISABLED{smsru} || LJ::GeoLocation->ip_country() ne 'RU') {
                 foreach (values %$tminfo) { LJ::text_out(\$_); }
                 ##
                 $ret .= "<tr><td class='field_name'>$ML{'.fn.servprov'}</td><td>";

Tags: bml, livejournal, wisest-owl
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