Fix #8413 : document $wgNamespaceRobotPolicies better in LocalSettings.php
authorAntoine Musso <hashar@users.mediawiki.org>
Thu, 4 Jan 2007 18:48:19 +0000 (18:48 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Thu, 4 Jan 2007 18:48:19 +0000 (18:48 +0000)
RELEASE-NOTES
includes/Article.php
includes/DefaultSettings.php

index 29cbecb..10420e7 100644 (file)
@@ -459,6 +459,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Introduce new flag 'R' - raw output for language variant escape tags
 * Advise users when updates for a query page have been disabled using
   $wgDisableQueryPageUpdate
+* (bug 8413) better comments for $wgNamespaceRobotPolicies setting.
 
 == Languages updated ==
 
index dd9178e..6b4f527 100644 (file)
@@ -632,6 +632,8 @@ class Article {
                if ( isset( $wgNamespaceRobotPolicies[$ns] ) ) {
                        $policy = $wgNamespaceRobotPolicies[$ns];
                } else {
+                       # The default policy. Dev note: make sure you change the documentation
+                       # in DefaultSettings.php before changing it.
                        $policy = 'index,follow';
                }
                $wgOut->setRobotpolicy( $policy );
index 468307b..7f8b40e 100644 (file)
@@ -2057,8 +2057,11 @@ $wgNoFollowLinks = true;
 $wgNoFollowNsExceptions = array();
 
 /**
- * Robot policies for namespaces
- * e.g. $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
+ * Robot policies per namespaces.
+ * The default policy is 'index,follow', the array is made of namespace
+ * constants as defined in includes/Defines.php
+ * Example:
+ *   $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
  */
 $wgNamespaceRobotPolicies = array();