mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-09-24 10:50:17 +00:00
Followup r83734 (ResourceLoaderGetConfigVars instead of MakeGlobalVariablesScript in Vector): do the same for WikiEditor
This commit is contained in:
parent
e89a32ca73
commit
24330513f7
|
@ -224,7 +224,7 @@ class WikiEditorHooks {
|
|||
*
|
||||
* Adds enabled/disabled switches for WikiEditor modules
|
||||
*/
|
||||
public static function makeGlobalVariablesScript( &$vars ) {
|
||||
public static function resourceLoaderGetConfigVars( &$vars ) {
|
||||
global $wgWikiEditorFeatures;
|
||||
|
||||
$configurations = array();
|
||||
|
|
|
@ -55,7 +55,7 @@ $wgAutoloadClasses['WikiEditorHooks'] = dirname( __FILE__ ) . '/WikiEditor.hooks
|
|||
$wgExtensionMessagesFiles['WikiEditor'] = dirname( __FILE__ ) . '/WikiEditor.i18n.php';
|
||||
$wgHooks['EditPage::showEditForm:initial'][] = 'WikiEditorHooks::editPageShowEditFormInitial';
|
||||
$wgHooks['GetPreferences'][] = 'WikiEditorHooks::getPreferences';
|
||||
$wgHooks['MakeGlobalVariablesScript'][] = 'WikiEditorHooks::makeGlobalVariablesScript';
|
||||
$wgHooks['ResourceLoaderGetConfigVars'][] = 'WikiEditorHooks::resourceLoaderGetConfigVars';
|
||||
|
||||
$wikiEditorTpl = array(
|
||||
'localBasePath' => dirname( __FILE__ ) . '/modules',
|
||||
|
|
Loading…
Reference in a new issue