jenkins-bot has submitted this change and it was merged.

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(+), 6 deletions(-)

Approvals:
  Brian Wolff: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/SpecialCiteThisPage.php b/SpecialCiteThisPage.php
index 5c39495..5e1cae9 100644
--- a/SpecialCiteThisPage.php
+++ b/SpecialCiteThisPage.php
@@ -151,12 +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 );
        }
 
        function genParserOptions() {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I3f8453606b92e1a3147af01dee928804a8b910bf
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CiteThisPage
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: Brian Wolff <bawolff...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to