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; }