jenkins-bot has submitted this change and it was merged.

Change subject: Added $wgMaxUploadSize to variables passed to upload window
......................................................................


Added $wgMaxUploadSize to variables passed to upload window

Patch by Karlpietsch.

Change-Id: I9c6f7c06bd093406da60e549d2bc7f6f7beb1a6c
---
M specials/SF_UploadWindow.php
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Yaron Koren: Checked; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/specials/SF_UploadWindow.php b/specials/SF_UploadWindow.php
index c1b4b90..709a790 100644
--- a/specials/SF_UploadWindow.php
+++ b/specials/SF_UploadWindow.php
@@ -1011,7 +1011,7 @@
         */
        protected function addUploadJS( $autofill = true ) {
                global $wgUseAjax, $wgAjaxUploadDestCheck, 
$wgAjaxLicensePreview;
-               global $wgStrictFileExtensions;
+               global $wgStrictFileExtensions, $wgMaxUploadSize;
 
                $scriptVars = array(
                        'wgAjaxUploadDestCheck' => $wgUseAjax && 
$wgAjaxUploadDestCheck,
@@ -1023,6 +1023,7 @@
                        'wgUploadSourceIds' => $this->mSourceIds,
                        'wgStrictFileExtensions' => $wgStrictFileExtensions,
                        'wgCapitalizeUploads' => MWNamespace::isCapitalized( 
NS_FILE ),
+                       'wgMaxUploadSize' => $wgMaxUploadSize,
                );
 
                $this->getOutput()->addScript( Skin::makeVariablesScript( 
$scriptVars ) );

-- 
To view, visit https://gerrit.wikimedia.org/r/214198
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I9c6f7c06bd093406da60e549d2bc7f6f7beb1a6c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticForms
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>
Gerrit-Reviewer: Yaron Koren <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to