mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 09:49:31 +02:00
Merge branch 'paladox-patch-1' into develop
This commit is contained in:
@ -15,7 +15,7 @@
|
|||||||
"license-name": "GPL-2.0+",
|
"license-name": "GPL-2.0+",
|
||||||
"descriptionmsg": "linktitles-desc",
|
"descriptionmsg": "linktitles-desc",
|
||||||
"requires": {
|
"requires": {
|
||||||
"MediaWiki": ">= 1.28.0"
|
"MediaWiki": ">= 1.32.0"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"LinkTitlesParseOnEdit": true,
|
"LinkTitlesParseOnEdit": true,
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
*/
|
*/
|
||||||
namespace LinkTitles;
|
namespace LinkTitles;
|
||||||
|
|
||||||
|
use MediaWiki\MediaWikiServices;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a page that is a potential link target.
|
* Represents a page that is a potential link target.
|
||||||
*/
|
*/
|
||||||
@ -149,7 +151,7 @@ class Source {
|
|||||||
* @return boolean True if the page contains the __NOAUTOLINKS__ magic word.
|
* @return boolean True if the page contains the __NOAUTOLINKS__ magic word.
|
||||||
*/
|
*/
|
||||||
public function hasNoAutolinksMagicWord() {
|
public function hasNoAutolinksMagicWord() {
|
||||||
return \MagicWord::get( 'MAG_LINKTITLES_NOAUTOLINKS' )->match( $this->getText() );
|
return MediaWikiServices::getInstance()->getMagicWordFactory()->get( 'MAG_LINKTITLES_NOAUTOLINKS' )->match( $this->getText() );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user