From c575c5e9f43bde1b2348bfe1e6b97ac9c6bcff97 Mon Sep 17 00:00:00 2001 From: Tomasz Finc Date: Tue, 14 Jul 2009 21:38:43 +0000 Subject: [PATCH] Marking redirects in XML --- includes/Export.php | 3 +++ 1 file changed, 3 insertions(+) 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"; -- 2.20.1