Skip to content
Browse files

Merge pull request #328 from lucymclaughlin/comms-newbranch

Remove some settings that don't apply to communities.
  • Loading branch information...
2 parents 35a787c + 8eeef5b commit 9706cc03b76e4a05fd8769c37c6e103409ee5f94 @zorkian zorkian committed Mar 21, 2013
Showing with 2 additions and 3 deletions.
  1. +1 −1 cgi-bin/DW/Setting/ExcludeOwnStats.pm
  2. +1 −2 cgi-bin/LJ/Setting/NCTalkLinks.pm
View
2 cgi-bin/DW/Setting/ExcludeOwnStats.pm
@@ -22,7 +22,7 @@ use LJ::Global::Constants;
sub should_render {
my ( $class, $u ) = @_;
- return $u && $u->can_use_page_statistics ? 1 : 0;
+ return $u && $u->can_use_page_statistics && $u->is_individual ? 1 : 0;
}
sub label {
View
3 cgi-bin/LJ/Setting/NCTalkLinks.pm
@@ -32,9 +32,8 @@ use warnings;
sub should_render {
my ( $class, $u ) = @_;
- return 0 unless $u;
+ return $u && $u->is_individual;
}
-
sub label {
my $class = shift;
return $class->ml( 'setting.nctalklinks.header' );

0 comments on commit 9706cc0

Please sign in to comment.
Something went wrong with that request. Please try again.