Fix change in magic words API for mediawiki 1.35 part 2 (#54)

This commit is contained in:
paladox
2021-03-30 20:14:45 +01:00
committed by GitHub
parent 5c3dac9dc3
commit 1c79deb7dd

View File

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