r53271 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53270‎ | r53271 | r53272 >
Date:21:38, 14 July 2009
Author:tomasz
Status:resolved
Tags:
Comment:
Marking redirects in XML
Modified paths:
  • /trunk/phase3/includes/Export.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Export.php
@@ -438,6 +438,9 @@
439439 $title = Title::makeTitle( $row->page_namespace, $row->page_title );
440440 $out .= ' ' . Xml::elementClean( 'title', array(), $title->getPrefixedText() ) . "\n";
441441 $out .= ' ' . Xml::element( 'id', array(), strval( $row->page_id ) ) . "\n";
 442+ if( $row->page_is_redirect ) {
 443+ $out .= ' ' . Xml::element( 'redirect', array() ). "\n";
 444+ }
442445 if( '' != $row->page_restrictions ) {
443446 $out .= ' ' . Xml::element( 'restrictions', array(),
444447 strval( $row->page_restrictions ) ) . "\n";

Follow-up revisions

RevisionCommit summaryAuthorDate
r53851Merge r53271 from trunk -- <redirect/> for export XMLbrion03:13, 28 July 2009
r57697Fixed total import breakage from r53271aaron01:24, 14 October 2009

Status & tagging log