Anomie has uploaded a new change for review. ( 
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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CiteThisPage 
refs/changes/64/393264/1

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: newchange
Gerrit-Change-Id: I30f162aa43c7f513df1153e0884a4339e4279aeb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CiteThisPage
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to