Fix UploadStash::removeFile() error
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 26 Feb 2013 23:15:17 +0000 (15:15 -0800)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 26 Feb 2013 23:27:30 +0000 (15:27 -0800)
commit8049aa338451fa96ae0ee527df15a7b1a2ca27a3
treec69f5bcc6e83d24b6b613d213552c7e7464ddce7
parent0c28ca142245a8993f4409d7adab20c04752ca2a
Fix UploadStash::removeFile() error

If nothing has called getFile() for a key before that key is passed to
removeFileNoAuth(), UploadStash will throw a fatal error when it tries to
remove the file from the filesystem because the UploadStashFile was
never created.

Change-Id: Idf0d2c53ce759b59836f34ff5aaad393b8c371c6
includes/upload/UploadStash.php