From 1c79deb7dd747a5e09dbe71e3bee739e39a32e80 Mon Sep 17 00:00:00 2001 From: paladox Date: Tue, 30 Mar 2021 20:14:45 +0100 Subject: [PATCH] Fix change in magic words API for mediawiki 1.35 part 2 (#54) --- includes/Target.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Target.php b/includes/Target.php index 64d7d12..d22c084 100644 --- a/includes/Target.php +++ b/includes/Target.php @@ -210,7 +210,7 @@ class Target { // page does indeed contain this magic word, return the page title // as-is (unlinked). if ( $this->config->enableNoTargetMagicWord ) { - if ( $this->getContent()->matchMagicWord( \MagicWord::get('MAG_LINKTITLES_NOTARGET') ) ) { + if ( $this->getContent()->matchMagicWord( \MediaWiki\MediaWikiServices::getInstance()->getMagicWordFactory()->get( 'MAG_LINKTITLES_NOTARGET' ) ) ) { return false; } };