Fix the fix in r25439, which incorrectly assumed that normalized extensions are the...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 4 Sep 2007 15:56:30 +0000 (15:56 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 4 Sep 2007 15:56:30 +0000 (15:56 +0000)
commit685dddf9f8fbe101511b58f6912d29bf8acb996f
treed15227bf798cc58bca125c6282a52064bc88b9d6
parentf2dbd70b442ca00b65f74b81dbea265d0eb840b6
Fix the fix in r25439, which incorrectly assumed that normalized extensions are the same length as their non-normalized forms. This isn't true: JPEG vs jpg for instance. :)
Additionally, makes the AJAX checks for non-exact matches work when an exact match isn't present; wfFindFile() checks local and shared repository, but returns no object if there isn't an exact match. Falling back to wfLocalFile() to get an object so the checks go through.
includes/SpecialUpload.php