jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/393264 )
Change subject: Use ParserOutput stateless transforms ...................................................................... Use ParserOutput stateless transforms Depends-On: I78b62ec33fcb8273acb9b3b4e9012215442be94c Change-Id: I30f162aa43c7f513df1153e0884a4339e4279aeb --- M SpecialCiteThisPage.php 1 file changed, 6 insertions(+), 3 deletions(-) Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified diff --git a/SpecialCiteThisPage.php b/SpecialCiteThisPage.php index d7f5adb..9a17686 100644 --- a/SpecialCiteThisPage.php +++ b/SpecialCiteThisPage.php @@ -117,7 +117,9 @@ ); $this->getOutput()->addModuleStyles( 'ext.citeThisPage' ); - $this->getOutput()->addParserOutputContent( $ret ); + $this->getOutput()->addParserOutputContent( $ret, [ + 'enableSectionEditLinks' => false, + ] ); } /** @@ -161,7 +163,6 @@ private function getParserOptions() { $parserOptions = ParserOptions::newFromUser( $this->getUser() ); $parserOptions->setDateFormat( 'default' ); - $parserOptions->setEditSection( false ); // Having tidy on causes whitespace and <pre> tags to // be generated around the output of the CiteThisPageOutput @@ -195,7 +196,9 @@ /* $linestart = */ false ); - return $ret->getText(); + return $ret->getText( [ + 'enableSectionEditLinks' => false, + ] ); } protected function getDisplayFormat() { -- To view, visit https://gerrit.wikimedia.org/r/393264 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I30f162aa43c7f513df1153e0884a4339e4279aeb Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CiteThisPage Gerrit-Branch: master Gerrit-Owner: Anomie <bjor...@wikimedia.org> Gerrit-Reviewer: Anomie <bjor...@wikimedia.org> Gerrit-Reviewer: Legoktm <lego...@member.fsf.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits