Special:Upload should not crash on failing previews
commit01cdee5ffd21216859ef501e0887e027b21f682c
authorDerk-Jan Hartman <hartman.wiki@gmail.com>
Thu, 19 Jan 2017 19:49:55 +0000 (19 11:49 -0800)
committerBartosz Dziewoński <matma.rex@gmail.com>
Fri, 20 Jan 2017 20:26:12 +0000 (20 20:26 +0000)
tree67a96841d259eb5b58937487056ffbc8f2e4706c
parenta95673a694ba750ead28edefe2cc6595060f63d3
Special:Upload should not crash on failing previews

A thumbnail transformation can fail, but the preview on Special:Upload
was not accounting for failed previews and caused a stacktrace on
accessing getUrl on 'false'.

Bug: T155771
Change-Id: Iff3a2ae3512a34a2d2efb981b7ea85da71aaf637
includes/specials/SpecialUpload.php