ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[livejournal] r17189: LJSUP-6568: Disable useless settings for...

Committer: ssafronova
LJSUP-6568: Disable useless settings for FB-users
U   trunk/htdocs/manage/settings/index.bml
Modified: trunk/htdocs/manage/settings/index.bml
===================================================================
--- trunk/htdocs/manage/settings/index.bml	2010-08-24 09:17:31 UTC (rev 17188)
+++ trunk/htdocs/manage/settings/index.bml	2010-08-24 09:33:33 UTC (rev 17189)
@@ -402,14 +402,23 @@
 
         $ret .= $widget->render({
             'title' => $ML{'subscribe_interface.category.friends-and-communities'},
-            'groups' => $set->extract_groups([
-                'InvitedFriendJoins-u',
-                'CommunityInvite-u',
-                'CommunityJoinRequest-u',
-                'NewUserpic',
-                'Birthday',
-                'NewVGift',
-            ]),
+            'groups' => $set->extract_groups( 
+                $u->is_identity
+                ? [
+                    'InvitedFriendJoins-u',
+                    'CommunityInvite-u',
+                    'NewUserpic',
+                    'Birthday',
+                    'NewVGift',
+                ]
+                : [
+                    'InvitedFriendJoins-u',
+                    'CommunityInvite-u',
+                    'CommunityJoinRequest-u',
+                    'NewUserpic',
+                    'Birthday',
+                    'NewVGift',
+                ]),
             'u' => $u,
             'css_class' => 'friends_and_communities',
         });

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