*/
protected function getSourceSection() {
global $wgLang, $wgUser, $wgRequest;
- global $wgMaxUploadSize;
if ( $this->mSessionKey ) {
return array(
- 'wpSessionKey' => array(
+ 'SessionKey' => array(
'type' => 'hidden',
'default' => $this->mSessionKey,
),
- 'wpSourceType' => array(
+ 'SourceType' => array(
'type' => 'hidden',
'default' => 'Stash',
),
wfShorthandToInteger( min(
wfShorthandToInteger(
ini_get( 'upload_max_filesize' )
- ), $wgMaxUploadSize
+ ), UploadBase::getMaxUploadSize( 'file' )
) )
)
) . ' ' . wfMsgHtml( 'upload_source_file' ),
'radio' => &$radio,
'help' => wfMsgExt( 'upload-maxfilesize',
array( 'parseinline', 'escapenoentities' ),
- $wgLang->formatSize( $wgMaxUploadSize )
+ $wgLang->formatSize( UploadBase::getMaxUploadSize( 'url' ) )
) . ' ' . wfMsgHtml( 'upload_source_url' ),
'checked' => $selectedSourceType == 'url',
);
$wgFileExtensions, $wgFileBlacklist;
if( $wgCheckFileExtensions ) {
- //don't show blacklisted types as permitted
- $wgFileExtensions = array_diff ( $wgFileExtensions, $wgFileBlacklist );
-
if( $wgStrictFileExtensions ) {
# Everything not permitted is banned
$extensionsList =