r52554 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52553‎ | r52554 | r52555 >
Date:17:03, 29 June 2009
Author:aaron
Status:ok
Tags:
Comment:
Use newFromRow() to pre-load more values
Modified paths:
  • /trunk/extensions/FlaggedRevs/api/ApiQueryOldreviewedpages.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/api/ApiQueryOldreviewedpages.php
@@ -107,10 +107,7 @@
108108 }
109109
110110 if ( is_null( $resultPageSet ) ) {
111 - $title = Title::makeTitle(
112 - $row->page_namespace,
113 - $row->page_title
114 - );
 111+ $title = Title::newFromRow( $row );
115112 $data[] = array(
116113 'pageid' => intval( $row->page_id ),
117114 'ns' => intval( $title->getNamespace() ),

Status & tagging log