Revert last commit for a moment, committed lots of stuff I didn't mean to.
authorAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 23 Jul 2008 19:27:13 +0000 (19:27 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 23 Jul 2008 19:27:13 +0000 (19:27 +0000)
includes/MagicWord.php
includes/parser/Parser.php
includes/parser/ParserOutput.php
languages/messages/MessagesEn.php

index ca2a113..5284e62 100644 (file)
@@ -105,8 +105,6 @@ class MagicWord {
                'numberofadmins',
                'defaultsort',
                'pagesincategory',
-               'index',
-               'noindex',
        );
 
        /* Array of caching hints for ParserCache */
@@ -155,8 +153,6 @@ class MagicWord {
                'noeditsection',
                'newsectionlink',
                'hiddencat',
-               'index',
-               'noindex',
        );
 
 
index 404f94a..b9e0cee 100644 (file)
@@ -3380,15 +3380,6 @@ class Parser
                                wfDebug( __METHOD__.": [[MediaWiki:hidden-category-category]] is not a valid title!\n" );
                        }
                }
-               # (bug 8068) Allow control over whether robots index a page.  FIXME:
-               # __INDEX__ always overrides __NOINDEX__ here!  This is not desirable,
-               # the last one on the page should win.
-               if( isset( $this->mDoubleUnderscores['noindex'] ) ) {
-                       $this->mOutput->setIndexPolicy( 'noindex' );
-               } elseif( isset( $this->mDoubleUnderscores['index'] ) ) {
-                       $this->mOutput->setIndexPolicy( 'index' );
-               }
-
                return $text;
        }
 
index 5f69af7..f98d564 100644 (file)
@@ -23,8 +23,7 @@ class ParserOutput
                $mOutputHooks,      # Hook tags as per $wgParserOutputHooks
                $mWarnings,         # Warning text to be returned to the user. Wikitext formatted, in the key only
                $mSections,         # Table of contents
-               $mProperties,       # Name/value pairs to be cached in the DB
-               $mIndexPolicy;          # 'index' or 'noindex'?  Default is null
+               $mProperties;       # Name/value pairs to be cached in the DB
 
        /**
         * Overridden title for display
@@ -53,7 +52,6 @@ class ParserOutput
                $this->mOutputHooks = array();
                $this->mWarnings = array();
                $this->mProperties = array();
-               $this->mIndexPolicy = null;
        }
 
        function getText()                   { return $this->mText; }
index 1ec6886..2361b84 100644 (file)
@@ -340,8 +340,6 @@ $magicWords = array(
        'hiddencat'              => array( 1,    '__HIDDENCAT__'          ),
        'pagesincategory'        => array( 1,    'PAGESINCATEGORY', 'PAGESINCAT' ),
        'pagesize'               => array( 1,    'PAGESIZE'               ),
-       'index'                  => array( 1,    '__INDEX__'              ),
-       'noindex'                => array( 1,    '__NOINDEX__'            ),
 );
 
 /**