(bug 25355) Parser generates edit section links for special pages
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 20 Jul 2011 22:32:30 +0000 (22:32 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 20 Jul 2011 22:32:30 +0000 (22:32 +0000)
Per Tim on r58362: disable edit section links on all text parsed via $wgOut. Article already handles setting this to true for page content, so this shouldn't really hurt anything. Could use some tests to confirm the behavior, however. Should resolve the last problems with r70498 and friends.

RELEASE-NOTES-1.19
includes/OutputPage.php

index 287c084..78d8fab 100644 (file)
@@ -23,6 +23,7 @@ production.
 * $wgUploadNavigationUrl should be used for file redlinks if
   $wgUploadMissingFileUrl is not set. The first was used for this
   until the second was introduced in 1.17.
+* (bug 25355) Parser generates edit section links for special pages
 
 === API changes in 1.19 ===
 * (bug 19838) siprop=interwikimap can now use the interwiki cache.
index c9b5c4b..1683b1d 100644 (file)
@@ -1279,6 +1279,7 @@ class OutputPage {
        public function parserOptions( $options = null ) {
                if ( !$this->mParserOptions ) {
                        $this->mParserOptions = new ParserOptions;
+                       $this->mParserOptions->setEditSection( false );
                }
                return wfSetVar( $this->mParserOptions, $options );
        }