Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/311593

Change subject: Remove pre-1.24 compat code
......................................................................

Remove pre-1.24 compat code

Extension already requires 1.25+.

Change-Id: I3f8453606b92e1a3147af01dee928804a8b910bf
---
M SpecialCiteThisPage.php
1 file changed, 1 insertion(+), 5 deletions(-)


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

diff --git a/SpecialCiteThisPage.php b/SpecialCiteThisPage.php
index 5c39495..7f32751 100644
--- a/SpecialCiteThisPage.php
+++ b/SpecialCiteThisPage.php
@@ -151,11 +151,7 @@
                );
                $wgOut->addModuleStyles( 'ext.citeThisPage' );
 
-               # Introduced in 1.24
-               if ( method_exists( $wgOut, 'addParserOutputContent' ) ) {
-                       $wgOut->addParserOutputContent( $ret );
-               } else {
-                       $wgOut->addHTML( $ret->getText() );
+               $wgOut->addParserOutputContent( $ret );
                }
        }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3f8453606b92e1a3147af01dee928804a8b910bf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CiteThisPage
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com>

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

Reply via email to