Pmiazga has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/363860 )

Change subject: Remove deprected $wgUseTidy in favour of TidyConfig
......................................................................

Remove deprected $wgUseTidy in favour of TidyConfig

Bug: T168671
Change-Id: I27f5bee2448797c3a5a8cb886cee0e518b199ebe
---
M includes/ApiQueryExtracts.php
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TextExtracts 
refs/changes/60/363860/1

diff --git a/includes/ApiQueryExtracts.php b/includes/ApiQueryExtracts.php
index 2a84bae..45aece8 100644
--- a/includes/ApiQueryExtracts.php
+++ b/includes/ApiQueryExtracts.php
@@ -342,7 +342,9 @@
         * @return string
         */
        private function tidy( $text ) {
-               if ( $this->getConfig()->get( 'UseTidy' ) && 
!$this->params['plaintext'] ) {
+               $tidyConfig = $this->getConfig()->get( 'TidyConfig' );
+
+               if ( $tidyConfig !== null && !$this->params['plaintext'] ) {
                        $text = trim( MWTidy::tidy( $text ) );
                }
                return $text;

-- 
To view, visit https://gerrit.wikimedia.org/r/363860
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I27f5bee2448797c3a5a8cb886cee0e518b199ebe
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/TextExtracts
Gerrit-Branch: master
Gerrit-Owner: Pmiazga <pmia...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to