diff options
author | Platonides <platonides@gmail.com> | 2012-05-05 22:38:04 +0200 |
---|---|---|
committer | Platonides <platonides@gmail.com> | 2012-05-05 22:38:04 +0200 |
commit | b5315d4f84d3a549a79b9cc12620ab07cf8734c6 (patch) | |
tree | 150be434b9a67a722b626c24716e6e9c9b4feaed | |
parent | 256ff39be2553c7ada55b41ffd8df05aee5e6b93 (diff) |
Support new export format in old MediaWiki 1.16origin/REL1_16
It was reported on enwiki Village Pump
https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_%28technical%29&diff=490839766&oldid=490829680#Why_did_Wikipedia_change_its_export_function_so_it_no_longer_works_with_any_other_wikis.3F
Change-Id: Ie8783e87b069cc3ce95fcbc5bcb96c159c0a42f8
-rw-r--r-- | includes/Import.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/Import.php b/includes/Import.php index 45908a6699e5..eced299e654b 100644 --- a/includes/Import.php +++ b/includes/Import.php @@ -690,6 +690,7 @@ class WikiImporter { switch( $name ) { case "id": case "title": + case "ns": case "redirect": case "restrictions": $this->appendfield = $name; @@ -862,6 +863,7 @@ class WikiImporter { case "comment": case "minor": case "text": + case "sha1": $this->appendfield = $name; xml_set_element_handler( $parser, "in_nothing", "out_append" ); xml_set_character_data_handler( $parser, "char_append" ); |