diff --git a/WikiEditor.hooks.php b/WikiEditor.hooks.php index ec267223..3ed66414 100644 --- a/WikiEditor.hooks.php +++ b/WikiEditor.hooks.php @@ -158,9 +158,17 @@ class WikiEditorHooks { ), ); - /* Protected Static Methods */ + /* Static Methods */ - protected static function isEnabled( $name ) { + /** + * Checks if a certain option is enabled + * + * This method is public to allow other extensions that use WikiEditor to use the + * same configuration as WikiEditor itself + * + * @param $name Name of the feature, should be a key of $features + */ + public static function isEnabled( $name ) { global $wgWikiEditorFeatures, $wgUser; // Features with global set to true are always enabled @@ -183,8 +191,6 @@ class WikiEditorHooks { return false; } - /* Static Methods */ - /** * EditPage::showEditForm:initial hook * diff --git a/modules/ext.wikiEditor.dialogs.js b/modules/ext.wikiEditor.dialogs.js index 635284bb..45a19593 100644 --- a/modules/ext.wikiEditor.dialogs.js +++ b/modules/ext.wikiEditor.dialogs.js @@ -3,11 +3,10 @@ */ $( document ).ready( function() { - /* if ( !$.wikiEditor.isSupported( $.wikiEditor.modules.dialogs ) ) { return; } - */ + // Replace icons $.wikiEditor.modules.dialogs.config.replaceIcons( $( '#wpTextbox1' ) );