diff --git a/includes/LinkTitles_Extension.php b/includes/LinkTitles_Extension.php index bf509b9..c4419f9 100644 --- a/includes/LinkTitles_Extension.php +++ b/includes/LinkTitles_Extension.php @@ -109,7 +109,8 @@ class Extension { // If the page contains the magic word '__NOAUTOLINKS__', do not parse it. // Only process if page is in one of our namespaces we want to link - if ( !isset( $parser->mDoubleUnderScores[$text] ) && in_array( $title->getNamespace(), $wgLinkTitlesNamespaces ) ) { + if ( !\MagicWord::get( 'MAG_LINKTITLES_NOAUTOLINKS' )->match( $text ) && + in_array( $title->getNamespace(), $wgLinkTitlesNamespaces ) ) { $text = self::parseContent( $title, $text ); } return true;