From d70ad8c383211bb3133c316d602a3e37adae3dba Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 20 Jul 2011 22:32:30 +0000 Subject: [PATCH] (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. --- RELEASE-NOTES-1.19 | 1 + includes/OutputPage.php | 1 + 2 files changed, 2 insertions(+) diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index 287c08456d..78d8fab4ac 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -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. diff --git a/includes/OutputPage.php b/includes/OutputPage.php index c9b5c4b2b7..1683b1d6eb 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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 ); } -- 2.20.1