r54073 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54072‎ | r54073 | r54074 >
Date:06:53, 31 July 2009
Author:raymond
Status:ok
Tags:
Comment:
Fix PHP Notice: Undefined variable: wgMimeTypeBlacklist in /var/www/w/includes/upload/UploadBase.php on line 190
Modified paths:
  • /trunk/phase3/includes/upload/UploadBase.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/upload/UploadBase.php
@@ -187,6 +187,7 @@
188188 #check mime type, if desired
189189 global $wgVerifyMimeType;
190190 if ($wgVerifyMimeType) {
 191+ global $wgMimeTypeBlacklist;
191192 if ( $this->checkFileExtension( $mime, $wgMimeTypeBlacklist ) )
192193 return array( 'filetype-badmime', $mime );
193194

Status & tagging log