r44885 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44884‎ | r44885 | r44886 >
Date:22:35, 21 December 2008
Author:catrope
Status:ok
Tags:
Comment:
(bug 16748) Null revisions are stored in the DB with rev_len=NULL. Patch by Paul Copperman
Modified paths:
  • /trunk/phase3/includes/Revision.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Revision.php
@@ -906,7 +906,7 @@
907907
908908 $current = $dbw->selectRow(
909909 array( 'page', 'revision' ),
910 - array( 'page_latest', 'rev_text_id' ),
 910+ array( 'page_latest', 'rev_text_id', 'rev_len' ),
911911 array(
912912 'page_id' => $pageId,
913913 'page_latest=rev_id',
@@ -919,7 +919,8 @@
920920 'comment' => $summary,
921921 'minor_edit' => $minor,
922922 'text_id' => $current->rev_text_id,
923 - 'parent_id' => $current->page_latest
 923+ 'parent_id' => $current->page_latest,
 924+ 'len' => $current->rev_len
924925 ) );
925926 } else {
926927 $revision = null;

Status & tagging log