mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-23 15:57:15 +00:00
Merge "Use new ResourceLoader namespace"
This commit is contained in:
commit
b62c5cf06a
|
@ -13,7 +13,7 @@
|
|||
"license-name": "GPL-2.0-or-later",
|
||||
"type": "editor",
|
||||
"requires": {
|
||||
"MediaWiki": ">= 1.38.0"
|
||||
"MediaWiki": ">= 1.39.0"
|
||||
},
|
||||
"MessagesDirs": {
|
||||
"WikiEditor": [
|
||||
|
|
|
@ -29,6 +29,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;
|
||||
|
@ -36,7 +37,6 @@ use MWCryptRand;
|
|||
use OutputPage;
|
||||
use RecentChange;
|
||||
use RequestContext;
|
||||
use ResourceLoaderContext;
|
||||
use Status;
|
||||
use User;
|
||||
use WebRequest;
|
||||
|
@ -364,11 +364,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(),
|
||||
|
@ -379,11 +379,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