Make SVG files show "In other resolutions" at all sizes
authorBrian Wolff <bawolff+wn@gmail.com>
Thu, 22 May 2014 17:44:43 +0000 (14:44 -0300)
committerBrian Wolff <bawolff+wn@gmail.com>
Wed, 2 Jul 2014 18:01:00 +0000 (15:01 -0300)
commit3de0b70abe0c87d8f796da6700fe33bf6d43cbd8
tree0bfa72c17bc023deed888b2e87570c5f1374dc36
parent87609efbe5ecdbc0fea32afbb8ee0e4afd6adaa3
Make SVG files show "In other resolutions" at all sizes

Previously it only showed the sizes smaller than the nominal
size of the svg, which is silly for an infinitely scalabe
vector image.

This splits up the function a bit, in order to be able to
do unit testing.

This also changes the link below SVGs to always be
"Show original file" (show-big-image), which I think makes
more sense anyhow.

Bug: 6834
Bug: 36911
Change-Id: Ic18e555f16940c658842148c155771ef31ac5db9
includes/page/ImagePage.php
tests/phpunit/includes/ImagePage404Test.php [new file with mode: 0644]
tests/phpunit/includes/ImagePageTest.php [new file with mode: 0644]
tests/phpunit/includes/media/MediaWikiMediaTestCase.php