From b4748f25ad2bc73c1d8e49f2ec51d11dd03a233e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Laxstr=C3=B6m?= Date: Mon, 23 Nov 2015 11:00:25 +0100 Subject: [PATCH] Remove unnecessary check for MW_SUPPORTS_CONTENTHANDLER This extension already requires 1.23+ Change-Id: Id9f0c44cdd55ec024eb9cacb4d5b6e02546aea07 --- AbuseFilter.class.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/AbuseFilter.class.php b/AbuseFilter.class.php index 529beac90..76de8862d 100755 --- a/AbuseFilter.class.php +++ b/AbuseFilter.class.php @@ -2204,16 +2204,13 @@ class AbuseFilter { if ( !$revision instanceof Revision ) { return ''; } - if ( defined( 'MW_SUPPORTS_CONTENTHANDLER' ) ) { - $content = $revision->getContent( $audience ); - if ( $content === null ) { - return ''; - } - $result = self::contentToString( $content ); - } else { - // For MediaWiki without contenthandler support (< 1.21) - $result = $revision->getText(); + + $content = $revision->getContent( $audience ); + if ( $content === null ) { + return ''; } + $result = self::contentToString( $content ); + return $result; }