fix hardcoded limit on titles in Special:Export
authorThis, that and the other <at.light@live.com.au>
Mon, 1 Feb 2016 14:16:08 +0000 (01:16 +1100)
committerTTO <at.light@live.com.au>
Tue, 2 Feb 2016 02:20:32 +0000 (02:20 +0000)
commit61b0b776357bb39f80072b8ed0d1edb4cab534a1
tree50bad04efde1d4f640a22825e32745ed25ac1caf
parent28906899160daa96960ea5de676e6e81687e95f8
fix hardcoded limit on titles in Special:Export

In Special:Export if you enter a category in the "Add pages from
category" textbox, there was a hardcoded limit of 5000 page titles in
the function getPagesFromCategory().

The same is true for a similar function fetching pages by namespace
instead of category, function getPagesFromNamespace().

I have a couple of wikis where we wish to export a nummber of pages
exceeding 5000, so this is inconvenient. In this commit, I have
introduced one new global configuration variable: $wgExportPagelistLimit.

This new configuration variable has had its default set in
includes/DefaultSettings.php to the values the two affected functions
were hardcoded to prior to this patch; 5000 in both instances.

This way, I can adjust the number of pages returned in the
Special:Export page by adjusting the above new variable in
LocalSettings.php.

Change-Id: I6ca9e26eb6bc4a7a2bafd73b9460f445940c8ecb
includes/DefaultSettings.php
includes/specials/SpecialExport.php