(bug 25355) Parser generates edit section links for special pages

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.
This commit is contained in:
Chad Horohoe 2011-07-20 22:32:30 +00:00
parent d4f8bd4fd2
commit d70ad8c383
2 changed files with 2 additions and 0 deletions

View 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.

View 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 );
}