Use ImageGallery directly in SpecialUpload::getDupeWarning()
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 24 Aug 2012 10:20:27 +0000 (12:20 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 24 Aug 2012 10:20:27 +0000 (12:20 +0200)
commite573db3d766ba60bf9f3a77851232a2f37606330
tree9a77b637863aaed14435ae1584fe6e60529b44ec
parent52c61302a0586889e1899673f7b387fad2edd69e
Use ImageGallery directly in SpecialUpload::getDupeWarning()

There is no need to go through a complete parse operation to
show the image gallery of duplicate files, instead the class
can be used directly.

Also refactored the code to do an early return if there are
no duplicated to not nest the code unnecessarily.

Change-Id: I459e539cf8140ef978388b3a65c644a0eb6c9a46
includes/specials/SpecialUpload.php