Matthias Mullie has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/394309 )
Change subject: Increase limit of amount of uploads to 500 for certain user
groups
......................................................................
Increase limit of amount of uploads to 500 for certain user groups
Bug: T135085
Change-Id: I82db87ba010740768f4ef45e68df977f24cdb6bc
---
M UploadWizard.config.php
M extension.json
M i18n/en.json
M i18n/qqq.json
M includes/UploadWizardConfig.php
5 files changed, 12 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard
refs/changes/09/394309/1
diff --git a/UploadWizard.config.php b/UploadWizard.config.php
index 35371bf..dec4e69 100644
--- a/UploadWizard.config.php
+++ b/UploadWizard.config.php
@@ -5,7 +5,7 @@
* $wgUploadWizardConfig[ 'name'] = 'value';
*/
global $wgFileExtensions, $wgServer, $wgScriptPath, $wgAPIModules, $wgLang,
- $wgMemc, $wgUploadWizardConfig, $wgCheckFileExtensions;
+ $wgMemc, $wgUploadWizardConfig, $wgCheckFileExtensions, $wgUser;
$userLangCode = $wgLang->getCode();
// We need to get a list of languages for the description dropdown.
@@ -564,7 +564,7 @@
'maxSimultaneousConnections' => 3,
// Max number of uploads for a given form
- 'maxUploads' => 50,
+ 'maxUploads' => $wgUser->isAllowed( 'mass-upload' ) ? 500 : 50,
// Max file size that is allowed by PHP (may be higher/lower than
MediaWiki file size limit).
// When using chunked uploading, these limits can be ignored.
diff --git a/extension.json b/extension.json
index 85d4017..1dfeb69 100644
--- a/extension.json
+++ b/extension.json
@@ -39,10 +39,14 @@
"upwizcampaigns": false
},
"sysop": {
- "upwizcampaigns": true
+ "upwizcampaigns": true,
+ "mass-upload": true
},
"upwizcampeditors": {
"upwizcampaigns": true
+ },
+ "Image-reviewer": {
+ "mass-upload": true
}
},
"AddGroups": {
@@ -56,7 +60,8 @@
]
},
"AvailableRights": [
- "upwizcampaigns"
+ "upwizcampaigns",
+ "mass-upload"
],
"ContentHandlers": {
"Campaign": "CampaignContentHandler"
diff --git a/i18n/en.json b/i18n/en.json
index e4720d9..b5c502d 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -8,6 +8,7 @@
"tag-uploadwizard-description": "Uploads made with Upload Wizard",
"tag-uploadwizard-flickr": "Flickr",
"tag-uploadwizard-flickr-description": "Flickr uploads made with Upload
Wizard",
+ "right-mass-upload": "Batch-upload more files at once with Upload
Wizard",
"right-upwizcampaigns": "Configure Upload Wizard campaigns",
"action-upwizcampaigns": "configure upload campaigns",
"group-upwizcampeditors": "Upload Wizard campaign editors",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index d278f89..a2f7143 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -36,6 +36,7 @@
"tag-uploadwizard-description": "Description for 'uploadwizard' tag (=
files uploaded with Upload Wizard)",
"tag-uploadwizard-flickr": "Display name for 'uploadwizard-flickr' tag
(= Flickr files uploaded with Upload Wizard)",
"tag-uploadwizard-flickr-description": "Description for
'uploadwizard-flickr' tag (= Flickr files uploaded with Upload Wizard)",
+ "right-mass-upload": "{{doc-right|mass-upload}}",
"right-upwizcampaigns": "{{doc-right|upwizcampaigns}}\n\n\"Upload
campaign\" can also be worded as \"a campaign for the promotion of
uploading\".",
"action-upwizcampaigns": "{{doc-action|upwizcampaigns}}",
"group-upwizcampeditors": "{{doc-group|upwizcampeditors}}",
diff --git a/includes/UploadWizardConfig.php b/includes/UploadWizardConfig.php
index cf50a94..228428c 100644
--- a/includes/UploadWizardConfig.php
+++ b/includes/UploadWizardConfig.php
@@ -68,7 +68,7 @@
protected static $urlConfig = [];
/**
- * Returns the globally configuration, optionaly combined with campaign
sepcific
+ * Returns the globally configuration, optionally combined with
campaign specific
* configuration.
*
* @since 1.2
--
To view, visit https://gerrit.wikimedia.org/r/394309
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I82db87ba010740768f4ef45e68df977f24cdb6bc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits