r83723 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83722‎ | r83723 | r83724 >
Date:21:42, 11 March 2011
Author:dale
Status:ok
Tags:
Comment:
removed addMediaWizard gadget ( should be supported via dedicated extension 'AddMediaWizard' )
Modified paths:
  • /trunk/extensions/WikiEditor/WikiEditor.php (modified) (history)
  • /trunk/extensions/WikiEditor/modules/ext.wikiEditor.addMediaWizard.js (deleted) (history)

Diff [purge]

Index: trunk/extensions/WikiEditor/WikiEditor.php
@@ -38,11 +38,7 @@
3939 'templateEditor' => array( 'global' => false, 'user' => false ),
4040 // Bare-bones (probably broken) template collapsing
4141 'templates' => array( 'global' => false, 'user' => false ),
42 -
43 - /* Unknown status */
44 -
45 - // Adds the AddMediaWizard gadget to the toolbar
46 - 'addMediaWizard' => array( 'global' => false, 'user' => false ),
 42+
4743 );
4844
4945 /* Setup */
Index: trunk/extensions/WikiEditor/modules/ext.wikiEditor.addMediaWizard.js
@@ -1,15 +0,0 @@
2 -/*
3 - * JavaScript for WikiEditor AddMediaWizard integration
4 - */
5 -
6 -$( document ).ready( function() {
7 - if ( typeof mwAddMediaConfig == 'undefined' ) {
8 - mwAddMediaConfig = {};
9 - }
10 - mwAddMediaConfig['enabled_providers'] = [ 'wiki_commons', 'upload' ];
11 - // Transclude mwEmbed support
12 - mediaWiki.loader.load(
13 - 'http://prototype.wikimedia.org/s-2/js/mwEmbed/remotes/mediaWiki.js?&uselang=' + wgUserLanguage,
14 - 'text/javascript'
15 - );
16 -};
\ No newline at end of file

Follow-up revisions

RevisionCommit summaryAuthorDate
r83730follow up to r83723 ( remove the add-media-wizard gadget )dale23:01, 11 March 2011

Status & tagging log