Merge "Bug 35671 - PHP Notice: Undefined index: gettoken in includes/api/ApiMain...
authorDemon <chadh@wikimedia.org>
Tue, 3 Apr 2012 19:47:08 +0000 (19:47 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 3 Apr 2012 19:47:08 +0000 (19:47 +0000)
includes/specials/SpecialUpload.php

index fabe4c4..91631f8 100644 (file)
@@ -830,7 +830,9 @@ class UploadForm extends HTMLForm {
                # that setting doesn't exist
                if ( !wfIsHipHop() ) {
                        $this->mMaxUploadSize['file'] = min( $this->mMaxUploadSize['file'],
-                               wfShorthandToInteger( ini_get( 'upload_max_filesize' ) ) );
+                               wfShorthandToInteger( ini_get( 'upload_max_filesize' ) ),
+                               wfShorthandToInteger( ini_get( 'post_max_size' ) )
+                       );
                }
 
                $descriptor['UploadFile'] = array(