Index: trunk/extensions/UploadWizard/UploadWizard.config.php |
— | — | @@ -15,8 +15,8 @@ |
16 | 16 | // The default api url is for the current wiki ( can override at run time ) |
17 | 17 | 'apiUrl' => $wgServer . $wgScriptPath . '/api.php', |
18 | 18 | |
19 | | - // If the uploaded file should be auto categorized |
20 | | - 'autoCategory' => false, |
| 19 | + // Category to automatically add all uploaded images into. Leave empty for none. |
| 20 | + 'autoCategory' => '', |
21 | 21 | |
22 | 22 | // 'licenses' is a list of licenses you could possibly use elsewhere, for instance in |
23 | 23 | // licensesOwnWork or licensesThirdParty. |
Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js |
— | — | @@ -255,7 +255,7 @@ |
256 | 256 | |
257 | 257 | // make this a category picker |
258 | 258 | var hiddenCats = []; |
259 | | - if ( mw.isDefined( mw.UploadWizard.config.autoCategory ) ) { |
| 259 | + if ( mw.isDefined( mw.UploadWizard.config.autoCategory ) && mw.UploadWizard.config.autoCategory !== '' ) { |
260 | 260 | hiddenCats.push( mw.UploadWizard.config.autoCategory ); |
261 | 261 | } |
262 | 262 | $categoriesDiv.find( '.mwe-upwiz-details-input' ) |