Followup r83734 (ResourceLoaderGetConfigVars instead of MakeGlobalVariablesScript in Vector): do the same for WikiEditor

This commit is contained in:
Roan Kattouw 2011-03-13 10:51:45 +00:00
parent e89a32ca73
commit 24330513f7
2 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

@ -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',