);
}
- if ( !$noAuth ) {
- if ( $this->fileMetadata[$key]['us_user'] != $this->userId ) {
- throw new UploadStashWrongOwnerException(
- wfMessage( 'uploadstash-wrong-owner', $key )
- );
- }
+ if ( !$noAuth && $this->fileMetadata[$key]['us_user'] != $this->userId ) {
+ throw new UploadStashWrongOwnerException(
+ wfMessage( 'uploadstash-wrong-owner', $key )
+ );
}
return $this->files[$key];
/**
* Remove the associated temporary file
- * @return status Success
+ * @return bool Success
*/
public function remove() {
if ( !$this->repo->fileExists( $this->path ) ) {