(bug 17374) Special:Export no longer exports two copies of the same page

This commit is contained in:
Chad Horohoe 2009-03-27 22:01:12 +00:00
parent c148b2dbf0
commit 517fcaedca
2 changed files with 8 additions and 1 deletions

View file

@ -294,6 +294,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
* (bug 18031) Make namespace selector on Special:Export remember the previous
selection
* The svn-version version numbers on Special:Version have been removed
* (bug 17374) Special:Export no longer exports two copies of the same page
== API changes in 1.15 ==
* (bug 16858) Revamped list=deletedrevs to make listing deleted contributions

View file

@ -210,7 +210,13 @@ class SpecialExport extends SpecialPage {
*/
$pages = array_keys( $pageSet );
// Normalize titles to the same format and remove dupes, see bug 17374
foreach( $pages as $k => $v ) {
$pages[$k] = str_replace( " ", "_", $v );
}
$pages = array_unique( $pages );
/* Ok, let's get to it... */
if( $history == WikiExporter::CURRENT ) {
$lb = false;