Do not suggest alternate svg sizes bigger than $wgMaxSVGSize on img pg
authorBrian Wolff <bawolff+wn@gmail.com>
Sun, 19 Jul 2015 11:26:58 +0000 (05:26 -0600)
committerBrian Wolff <bawolff+wn@gmail.com>
Sun, 19 Jul 2015 21:38:57 +0000 (15:38 -0600)
commit120d71495ba964abc78c158b6fda95bb4470c7f4
tree52656a2890205088703521f46ad78a0e2f5ac3ca
parentcf501475fd8e72b0605f1f3c2c396302a9b608d5
Do not suggest alternate svg sizes bigger than $wgMaxSVGSize on img pg

Suggesting a size bigger than the max svg size, will simply result
in a smaller rendering than the user has been lead to believe they
would recieve.

Additionally fix wrong argument order to $this->getThumbSizes
which was causing the nominal size for an SVG to not be suggested
as an alternate size on the image page.

See some of the comments T106263 (However, that bug is not about
this issue).

Change-Id: Ia63ddd6e89725f8e7979687310c3b6819da0cbbc
includes/page/ImagePage.php