Anomie has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/392905 )
Change subject: Remove use of OutputPage::parserOptions() as a setter
......................................................................
Remove use of OutputPage::parserOptions() as a setter
It's only being used to do ->setEditSections( false ), which has been
the default since MediaWiki 1.19.
Change-Id: I7b0604773a8692c7cb37fffa3fcb8aaac83d81ba
---
M classes/View.php
1 file changed, 0 insertions(+), 9 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LiquidThreads
refs/changes/05/392905/1
diff --git a/classes/View.php b/classes/View.php
index 053d5e9..226d9d0 100644
--- a/classes/View.php
+++ b/classes/View.php
@@ -1576,12 +1576,6 @@
* @param Thread $thread
*/
function showThreadBody( $thread ) {
- // Remove 'editsection', it won't work.
- $popts = $this->output->parserOptions();
- $previous_editsection = $popts->getEditSection();
- $popts->setEditSection( false );
- $this->output->parserOptions( $popts );
-
$post = $thread->root();
$divClass = $this->postDivClass( $thread );
@@ -1627,9 +1621,6 @@
}
$this->output->addHTML( $html );
-
- $popts->setEditSection( $previous_editsection );
- $this->output->parserOptions( $popts );
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/392905
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7b0604773a8692c7cb37fffa3fcb8aaac83d81ba
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LiquidThreads
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits