Cleanup for r56298 "(bug 18180) Special:Export ignores limit, dir, offset parameters...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 29 Sep 2009 21:37:07 +0000 (21:37 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 29 Sep 2009 21:37:07 +0000 (21:37 +0000)
commitc1c7c674d910a474dfd2bb1c577ed9d25b908912
tree4ce58488adb1ec4ca0cc3777dd72827e2063c802
parentfb413543eae70a90e456c62168c8517af2140ce7
Cleanup for r56298 "(bug 18180) Special:Export ignores limit, dir, offset parameters. Patch by azliq7"
Reorder the checks so that we get the is_array() out of the way first instead of relying on the weird type interaction between the array and the integers when doing binary AND. :)
Also made a fix so this actually works when $wgExportMaxHistory is set to 0, which per doc comment seems like it should not limit.
includes/Export.php
includes/specials/SpecialExport.php