(bug 33037) Special:newfiles treat its subpage parameter as a limit
authorBrian Wolff <bawolff+wn@gmail.com>
Sun, 8 Jul 2012 17:02:35 +0000 (14:02 -0300)
committerCatrope <roan.kattouw@gmail.com>
Tue, 7 Aug 2012 18:54:53 +0000 (11:54 -0700)
commitd033fe3a5d02eefd92a1276d4616c0ba1311a327
treeb1ecab38282f4fd3043f044f7874f9f9e950802d
parentd50b416d9f36101d260bf44f2df53864ed1b0431
(bug 33037) Special:newfiles treat its subpage parameter as a limit

This restores the older behaviour of Special:newfiles. This allows
people to easily include variable sized galleries via
{{Special:newfiles/12}} syntax (people could of course previously do
{{special:newfiles|limit=12}} but less people know that.

Also makes IndexPager::setLimit validate the limit in the same way
it validates the limit coming from a url, and makes it so that
calling setLimit takes precedence over its built in determine the limit
code.

p.s. This is my first commit in our great glourious git future, so
let me know if i did anything wrong

Change-Id: I7fc148e56e43b7c453a1a9559ef74b8b3119c6fe
RELEASE-NOTES-1.20
includes/Pager.php
includes/specials/SpecialNewimages.php