mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-23 15:57:15 +00:00
Use new ResourceLoader namespace
Extensions using Phan need to be updated simultaneously with core due to T308443. Bug: T308718 Depends-On: Id08a220e1d6085e2b33f3f6c9d0e3935a4204659 Change-Id: I289b8cb5e74b5d87e26bfe6b779a22eaaa1071ee
This commit is contained in:
parent
cdd01171cc
commit
6b2cca3b2b
|
@ -13,7 +13,7 @@
|
|||
"license-name": "GPL-2.0-or-later",
|
||||
"type": "editor",
|
||||
"requires": {
|
||||
"MediaWiki": ">= 1.38.0"
|
||||
"MediaWiki": ">= 1.39.0"
|
||||
},
|
||||
"MessagesDirs": {
|
||||
"WikiEditor": [
|
||||
|
|
|
@ -27,6 +27,7 @@ use MediaWiki\Hook\EditPageGetPreviewContentHook;
|
|||
use MediaWiki\Hook\RecentChange_saveHook;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Preferences\Hook\GetPreferencesHook;
|
||||
use MediaWiki\ResourceLoader as RL;
|
||||
use MediaWiki\User\UserEditTracker;
|
||||
use MediaWiki\User\UserOptionsLookup;
|
||||
use MessageLocalizer;
|
||||
|
@ -34,7 +35,6 @@ use MWCryptRand;
|
|||
use OutputPage;
|
||||
use RecentChange;
|
||||
use RequestContext;
|
||||
use ResourceLoaderContext;
|
||||
use Status;
|
||||
use User;
|
||||
use WebRequest;
|
||||
|
@ -348,11 +348,11 @@ class Hooks implements
|
|||
}
|
||||
|
||||
/**
|
||||
* @param ResourceLoaderContext $context
|
||||
* @param RL\Context $context
|
||||
* @param Config $config
|
||||
* @return array
|
||||
*/
|
||||
public static function getModuleData( ResourceLoaderContext $context, Config $config ) {
|
||||
public static function getModuleData( RL\Context $context, Config $config ) {
|
||||
return [
|
||||
// expose magic words for use by the wikieditor toolbar
|
||||
'magicWords' => self::getMagicWords(),
|
||||
|
@ -362,11 +362,11 @@ class Hooks implements
|
|||
}
|
||||
|
||||
/**
|
||||
* @param ResourceLoaderContext $context
|
||||
* @param RL\Context $context
|
||||
* @param Config $config
|
||||
* @return array
|
||||
*/
|
||||
public static function getModuleDataSummary( ResourceLoaderContext $context, Config $config ) {
|
||||
public static function getModuleDataSummary( RL\Context $context, Config $config ) {
|
||||
return [
|
||||
'magicWords' => self::getMagicWords(),
|
||||
'signature' => self::getSignatureMessage( $context, true )
|
||||
|
|
Loading…
Reference in a new issue