Let Import also read CDATA as content
authorMatthias Mullie <git@mullie.eu>
Wed, 14 Oct 2015 09:14:51 +0000 (11:14 +0200)
committerMatthew Flaschen <mflaschen@wikimedia.org>
Tue, 3 Nov 2015 01:02:34 +0000 (20:02 -0500)
Change-Id: I55275e20bb2fd589247fca5c44fd54d1ae9ff686

includes/Import.php

index 33ab4ea..3d94c33 100644 (file)
@@ -515,6 +515,7 @@ class WikiImporter {
                while ( $this->reader->read() ) {
                        switch ( $this->reader->nodeType ) {
                        case XMLReader::TEXT:
+                       case XMLReader::CDATA:
                        case XMLReader::SIGNIFICANT_WHITESPACE:
                                $buffer .= $this->reader->value;
                                break;