Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

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

Committer: gariev
LJSUP-6568: Disable useless settings for FB-users

U   trunk/cgi-bin/LJ/Setting/SearchInclusion.pm
U   trunk/cgi-bin/LJ/Setting/WebmasterTools.pm
Modified: trunk/cgi-bin/LJ/Setting/SearchInclusion.pm
===================================================================
--- trunk/cgi-bin/LJ/Setting/SearchInclusion.pm	2010-08-23 10:37:31 UTC (rev 17181)
+++ trunk/cgi-bin/LJ/Setting/SearchInclusion.pm	2010-08-23 10:43:59 UTC (rev 17182)
@@ -6,7 +6,7 @@
 sub should_render {
     my ($class, $u) = @_;
 
-    return $u ? 1 : 0;
+    return ($u && !$u->is_identity);
 }
 
 sub helpurl {

Modified: trunk/cgi-bin/LJ/Setting/WebmasterTools.pm
===================================================================
--- trunk/cgi-bin/LJ/Setting/WebmasterTools.pm	2010-08-23 10:37:31 UTC (rev 17181)
+++ trunk/cgi-bin/LJ/Setting/WebmasterTools.pm	2010-08-23 10:43:59 UTC (rev 17182)
@@ -6,9 +6,8 @@
 sub should_render {
     my ($class, $u) = @_;
 
-    warn "here";
     return 0 if $class eq __PACKAGE__; # this is an abstract class
-    return !$u || $u->is_community ? 0 : 1;
+    return $u && $u->is_personal;
 }
 
 sub code {

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