return false;
}
- $user = User::newFromName( $this->user_text );
+ $user = User::newFromName( $this->user_text );
$status = $file->upload( $source,
$this->getComment(),
global $wgMaxUploadSize;
if ( is_array( $wgMaxUploadSize ) ) {
- if ( !is_null( $forType) && isset( $wgMaxUploadSize[$forType] ) ) {
+ if ( !is_null( $forType ) && isset( $wgMaxUploadSize[$forType] ) ) {
return $wgMaxUploadSize[$forType];
} else {
return $wgMaxUploadSize['*'];
wfDebug( "UploadStash: tried to stash file at '$path', but it doesn't exist\n" );
throw new UploadStashBadPathException( "path doesn't exist" );
}
- $fileProps = File::getPropsFromPath( $path );
+ $fileProps = File::getPropsFromPath( $path );
// we will be initializing from some tmpnam files that don't have extensions.
// most of MediaWiki assumes all uploaded files have good extensions. So, we fix this.