r53851 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53850‎ | r53851 | r53852 >
Date:03:13, 28 July 2009
Author:brion
Status:ok
Tags:
Comment:
Merge r53271 from trunk -- <redirect/> for export XML
Modified paths:
  • /branches/wmf-deployment/includes/Export.php (modified) (history)

Diff [purge]

Index: branches/wmf-deployment/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";

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r53271Marking redirects in XMLtomasz21:38, 14 July 2009

Status & tagging log