Index: branches/REL1_3/phase3/includes/SpecialUpload.php |
— | — | @@ -149,6 +149,8 @@ |
150 | 150 | } |
151 | 151 | if($warning != '') return $this->uploadWarning($warning); |
152 | 152 | } |
| 153 | + } else { |
| 154 | + return $this->uploadError('<li>'.wfMsg( 'emptyfile' ).'</li>'); |
153 | 155 | } |
154 | 156 | if ( !is_null( $this->mUploadOldVersion ) ) { |
155 | 157 | $wgUploadOldVersion = $this->mUploadOldVersion; |