* (bug 17010) maintenance/namespaceDupes.php now add the suffix recursively if
the destination page exists
* Page moves should not be minor edits
+* (bug 17035) Special:Upload now fails gracefully if PHP's file_uploads has been
+ disabled
== API changes in 1.15 ==
* (bug 16858) Revamped list=deletedrevs to make listing deleted contributions
global $wgUser, $wgOut;
global $wgEnableUploads;
+ # Check php's file_uploads setting
+ if( !wfIniGetBool( 'file_uploads' ) ) {
+ $wgOut->showErrorPage( 'uploaddisabled', 'php-uploaddisabledtext', array( $this->mDesiredDestName ) );
+ return;
+ }
+
# Check uploading enabled
if( !$wgEnableUploads ) {
$wgOut->showErrorPage( 'uploaddisabled', 'uploaddisabledtext', array( $this->mDesiredDestName ) );
'uploadedimage' => 'uploaded "[[$1]]"',
'overwroteimage' => 'uploaded a new version of "[[$1]]"',
'uploaddisabled' => 'Uploads disabled',
+'php-uploaddisabledtext' => 'PHP file uploads are disabled. Please check the file_uploads setting.',
'uploaddisabledtext' => 'File uploads are disabled.',
'uploadscripted' => 'This file contains HTML or script code that may be erroneously interpreted by a web browser.',
'uploadcorrupt' => 'The file is corrupt or has an incorrect extension.
'overwroteimage',
'uploaddisabled',
'uploaddisabledtext',
+ 'php-uploaddisabledtext',
'uploadscripted',
'uploadcorrupt',
'uploadvirus',