changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[ljcom] r10327: LJSUP-8420 (Remove crossposting to VKont...

Committer: ailyin
LJSUP-8420 (Remove crossposting to VKontakte from release 77.1)
U   trunk/cgi-bin/LJ/Hooks/Userinfo.pm
Modified: trunk/cgi-bin/LJ/Hooks/Userinfo.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Userinfo.pm	2011-03-30 08:37:28 UTC (rev 10326)
+++ trunk/cgi-bin/LJ/Hooks/Userinfo.pm	2011-03-30 08:38:21 UTC (rev 10327)
@@ -488,7 +488,9 @@
         };
     }
 
-    if ( $u->is_person && $u->prop('vkontakte_access_token') ) {
+    if ( LJ::is_enabled('repost_vkontakte') && $u->is_person
+      && $u->prop('vkontakte_access_token') )
+    {
         my $vk_name = LJ::ehtml($u->prop('vkontakte_name'));
         my $vk_link = LJ::ehtml($u->prop('vkontakte_link'));
 
@@ -597,18 +599,20 @@
 
     $ret .= "</td></tr>\n";
 
-    $ret .= "<tr><td class='field_name'>" . LJ::Lang::ml('/manage/profile/index.bml.chat.vkontakte'). "</td><td>";
-    if ($u->prop('vkontakte_access_token')) {
-        my $vk_name = $u->prop('vkontakte_name');
-        $ret .= qq{
-            <img src="$LJ::IMGPREFIX/vkontakte-profile.gif?v=2" alt='' />
-            <strong>$vk_name</strong>
+    if ( LJ::is_enabled('repost_vkontakte') ) {
+        $ret .= "<tr><td class='field_name'>" . LJ::Lang::ml('/manage/profile/index.bml.chat.vkontakte'). "</td><td>";
+        if ($u->prop('vkontakte_access_token')) {
+            my $vk_name = $u->prop('vkontakte_name');
+            $ret .= qq{
+                <img src="$LJ::IMGPREFIX/vkontakte-profile.gif?v=2" alt='' />
+                <strong>$vk_name</strong>
+            }
+        } else {
+            $ret .= "<em>(" . LJ::Lang::ml('/manage/profile/index.bml.chat.vkontakte.none') . ")</em> ";
         }
-    } else {
-        $ret .= "<em>(" . LJ::Lang::ml('/manage/profile/index.bml.chat.vkontakte.none') . ")</em> ";
+        $ret .= qq{<a href="$LJ::SITEROOT/manage/settings/?cat=extensions">} . LJ::Lang::ml('/manage/profile/index.bml.chat.vkontakte.change') . '</a>';
+        $ret .= "</td></tr>\n";
     }
-    $ret .= qq{<a href="$LJ::SITEROOT/manage/settings/?cat=extensions">} . LJ::Lang::ml('/manage/profile/index.bml.chat.vkontakte.change') . '</a>';
-    $ret .= "</td></tr>\n";
 
     return $ret;
 });

Tags: andy, ljcom, pm
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