https://bugzilla.wikimedia.org/show_bug.cgi?id=8473

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #7 from [email protected] 2012-09-05 23:01:05 UTC ---
Quick and dirty (?) solution :

in SpecialPage.php, method setHeaders(), replace

  $out->setRobotPolicy( "noindex,nofollow" );

with

  global $wgNamespaceRobotPolicies;
  $ns = $this->getTitle()->getNamespace();
  if ( isset( $wgNamespaceRobotPolicies[$ns] ) ) {
     $policy = $wgNamespaceRobotPolicies[$ns];
  } else {
     $policy ='noindex,nofollow';
  }
  $out->setRobotpolicy( $policy );

This keeps the 'noindex,nofollow' setting as default, but it can be overriden
in LocalSettings.php, e.g.

$wgNamespaceRobotPolicies[NS_SPECIAL] = 'noindex,follow'

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to