Index: trunk/phase3/includes/Title.php |
— | — | @@ -218,12 +218,13 @@ |
219 | 219 | return array(); |
220 | 220 | } |
221 | 221 | $dbr = wfGetDB( DB_SLAVE ); |
222 | | - $res = $dbr->select( 'page', array( 'page_namespace', 'page_title' ), |
223 | | - 'page_id IN (' . $dbr->makeList( $ids ) . ')', __METHOD__ ); |
| 222 | + |
| 223 | + $res = $dbr->select( 'page', array( '*' ), |
| 224 | + array( 'page_id' => $ids ), __METHOD__ ); |
224 | 225 | |
225 | 226 | $titles = array(); |
226 | 227 | foreach ( $res as $row ) { |
227 | | - $titles[] = Title::makeTitle( $row->page_namespace, $row->page_title ); |
| 228 | + $titles[] = Title::newFromRow( $row ); |
228 | 229 | } |
229 | 230 | return $titles; |
230 | 231 | } |