From: Tomasz Finc Date: Tue, 14 Jul 2009 21:38:43 +0000 (+0000) Subject: Marking redirects in XML X-Git-Tag: 1.31.0-rc.0~40952 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=c575c5e9f43bde1b2348bfe1e6b97ac9c6bcff97;p=lhc%2Fweb%2Fwiklou.git Marking redirects in XML --- diff --git a/includes/Export.php b/includes/Export.php index 4d4f39b09e..3372cece4a 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -438,6 +438,9 @@ class XmlDumpWriter { $title = Title::makeTitle( $row->page_namespace, $row->page_title ); $out .= ' ' . Xml::elementClean( 'title', array(), $title->getPrefixedText() ) . "\n"; $out .= ' ' . Xml::element( 'id', array(), strval( $row->page_id ) ) . "\n"; + if( $row->page_is_redirect ) { + $out .= ' ' . Xml::element( 'redirect', array() ). "\n"; + } if( '' != $row->page_restrictions ) { $out .= ' ' . Xml::element( 'restrictions', array(), strval( $row->page_restrictions ) ) . "\n";