(bug 40326) Check if files exist with a different extension during
authorbtongminh <bryan.tongminh@gmail.com>
Wed, 6 Feb 2013 20:15:07 +0000 (21:15 +0100)
committerReedy <reedy@wikimedia.org>
Wed, 6 Mar 2013 03:52:49 +0000 (03:52 +0000)
commitc5c8b3145015f24bfcb21dca9e581e0c7df2d9bc
tree36ad50112a00011515c0e43dac34d76e570564ae
parent154a0a03aa545762663c98eeea40417425f8c430
(bug 40326) Check if files exist with a different extension during
uploading

Added FileRepo::findFilesByPrefix( $prefix ), which does a img_name LIKE
'$prefix%' search and use this in UploadBase::getExistsWarning().

Change-Id: I21eddc5d08ca3c23b342ebc1c6947e36c4201a45
RELEASE-NOTES-1.21
includes/filerepo/FileRepo.php
includes/filerepo/LocalRepo.php
includes/upload/UploadBase.php