r110376 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110375‎ | r110376 | r110377 >
Date:10:26, 31 January 2012
Author:ialex
Status:ok
Tags:
Comment:
Added 'page_id' to the fields returned by Revision::selectPageFields() so that the Title object created in Revision::__construct() already knows its id and it doesn't have to issue another DB query to load it (happens e.g. in api.php?action=parse&oldid=... calls)
Modified paths:
  • /trunk/phase3/includes/Revision.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Revision.php
@@ -357,6 +357,7 @@
358358 return array(
359359 'page_namespace',
360360 'page_title',
 361+ 'page_id',
361362 'page_latest'
362363 );
363364 }

Status & tagging log