diff --git a/extension.json b/extension.json index 333c2d11..3a00e1b5 100644 --- a/extension.json +++ b/extension.json @@ -12,7 +12,7 @@ "license-name": "GPL-2.0-or-later", "type": "parserhook", "requires": { - "MediaWiki": ">= 1.39" + "MediaWiki": ">= 1.40" }, "config": { "PFEnableStringFunctions": { diff --git a/includes/ParserFunctions.php b/includes/ParserFunctions.php index c5e522ea..fd07384e 100644 --- a/includes/ParserFunctions.php +++ b/includes/ParserFunctions.php @@ -12,6 +12,7 @@ use MediaWiki\Languages\LanguageConverterFactory; use MediaWiki\Languages\LanguageFactory; use MediaWiki\Languages\LanguageNameUtils; use MediaWiki\SpecialPage\SpecialPageFactory; +use MediaWiki\Title\Title; use MWTimestamp; use Parser; use PPFrame; @@ -19,7 +20,6 @@ use PPNode; use RepoGroup; use Sanitizer; use StringUtils; -use Title; use Wikimedia\RequestTimeout\TimeoutException; /**