Index: trunk/extensions/WikiEditor/WikiEditor.hooks.php |
— | — | @@ -158,9 +158,17 @@ |
159 | 159 | ), |
160 | 160 | ); |
161 | 161 | |
162 | | - /* Protected Static Methods */ |
| 162 | + /* Static Methods */ |
163 | 163 | |
164 | | - protected static function isEnabled( $name ) { |
| 164 | + /** |
| 165 | + * Checks if a certain option is enabled |
| 166 | + * |
| 167 | + * This method is public to allow other extensions that use WikiEditor to use the |
| 168 | + * same configuration as WikiEditor itself |
| 169 | + * |
| 170 | + * @param $name Name of the feature, should be a key of $features |
| 171 | + */ |
| 172 | + public static function isEnabled( $name ) { |
165 | 173 | global $wgWikiEditorFeatures, $wgUser; |
166 | 174 | |
167 | 175 | // Features with global set to true are always enabled |
— | — | @@ -183,8 +191,6 @@ |
184 | 192 | return false; |
185 | 193 | } |
186 | 194 | |
187 | | - /* Static Methods */ |
188 | | - |
189 | 195 | /** |
190 | 196 | * EditPage::showEditForm:initial hook |
191 | 197 | * |
Index: trunk/extensions/WikiEditor/modules/ext.wikiEditor.dialogs.js |
— | — | @@ -3,11 +3,10 @@ |
4 | 4 | */ |
5 | 5 | |
6 | 6 | $( document ).ready( function() { |
7 | | - /* |
8 | 7 | if ( !$.wikiEditor.isSupported( $.wikiEditor.modules.dialogs ) ) { |
9 | 8 | return; |
10 | 9 | } |
11 | | - */ |
| 10 | + |
12 | 11 | // Replace icons |
13 | 12 | $.wikiEditor.modules.dialogs.config.replaceIcons( $( '#wpTextbox1' ) ); |
14 | 13 | |