r14639 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14638‎ | r14639 | r14640 >
Date:13:41, 7 June 2006
Author:yurik
Status:old
Tags:
Comment:
* bugfix: revision elements showed subitems as elements, not attributes.
Modified paths:
  • /trunk/extensions/BotQuery/query.php (modified) (history)

Diff [purge]

Index: trunk/extensions/BotQuery/query.php
@@ -1160,7 +1160,10 @@
11611161 if( $rvcontent ) {
11621162 $vals['xml:space'] = 'preserve';
11631163 $vals['*'] = Revision::getRevisionText( $row );
 1164+ } else {
 1165+ $vals['*'] = ''; // Force all elements to be attributes
11641166 }
 1167+
11651168 $this->addPageSubElement( $pageId, 'revisions', 'rv', $vals);
11661169 }
11671170 $this->db->freeResult( $res );

Status & tagging log