* (bug 13543) Updated FAQ link in the installer sidebar
* (bug 13540) Date format in confirmation e-mail now matches message language
* (bug 13554) PHP Notice in old pre-processor when list item is empty.
-
+* (bug 13556) Don't show a blank form if no image is attached in Special:Upload
=== API changes in 1.13 ===
$details = null;
$value = null;
$value = $this->internalProcessUpload( $details );
-
+
switch($value) {
case self::SUCCESS:
$wgOut->redirect( $this->mLocalFile->getTitle()->getFullURL() );
return self::BEFORE_PROCESSING;
}
- /* Check for curl error */
- if( $this->mCurlError ) {
- return self::BEFORE_PROCESSING;
- }
-
/**
* If there was no filename or a zero size given, give up quick.
*/
return self::EMPTY_FILE;
}
+ /* Check for curl error */
+ if( $this->mCurlError ) {
+ return self::BEFORE_PROCESSING;
+ }
+
# Chop off any directories in the given filename
if( $this->mDesiredDestName ) {
$basename = $this->mDesiredDestName;
$val2 = $val;
}
$val2 = $wgAllowCopyUploads ? min( $wgMaxUploadSize, $val2 ) : $val2;
- $maxUploadSize = wfMsgExt( 'upload-maxfilesize', array( 'parseinline', 'escape' ), $wgLang->formatSize( $val2 ) );
+ $maxUploadSize = wfMsgExt( 'upload-maxfilesize', array( 'parseinline', 'escapenoentities' ), $wgLang->formatSize( $val2 ) );
$sourcefilename = wfMsgExt( 'sourcefilename', 'escapenoentities' );
$destfilename = wfMsgExt( 'destfilename', 'escapenoentities' );