Index: trunk/phase3/includes/specials/SpecialNewpages.php |
— | — | @@ -231,7 +231,7 @@ |
232 | 232 | global $wgLang, $wgContLang, $wgUser; |
233 | 233 | $dm = $wgContLang->getDirMark(); |
234 | 234 | |
235 | | - $title = Title::makeTitleSafe( $result->page_namespace, $result->page_title ); |
| 235 | + $title = Title::makeTitleSafe( $result->rc_namespace, $result->rc_title ); |
236 | 236 | $time = $wgLang->timeAndDate( $result->rc_timestamp, true ); |
237 | 237 | $plink = $this->skin->makeKnownLinkObj( $title, '', $this->patrollable( $result ) ? 'rcid=' . $result->rc_id : '' ); |
238 | 238 | $hist = $this->skin->makeKnownLinkObj( $title, wfMsgHtml( 'hist' ), 'action=history' ); |
— | — | @@ -305,7 +305,7 @@ |
306 | 306 | } |
307 | 307 | |
308 | 308 | protected function feedItem( $row ) { |
309 | | - $title = Title::MakeTitle( intval( $row->page_namespace ), $row->page_title ); |
| 309 | + $title = Title::MakeTitle( intval( $row->rc_namespace ), $row->rc_title ); |
310 | 310 | if( $title ) { |
311 | 311 | $date = $row->rc_timestamp; |
312 | 312 | $comments = $title->getTalkPage()->getFullURL(); |
— | — | @@ -379,7 +379,7 @@ |
380 | 380 | $user = Title::makeTitleSafe( NS_USER, $username ); |
381 | 381 | |
382 | 382 | if( $namespace !== false ) { |
383 | | - $conds['page_namespace'] = $namespace; |
| 383 | + $conds['rc_namespace'] = $namespace; |
384 | 384 | $rcIndexes = array( 'new_name_timestamp' ); |
385 | 385 | } else { |
386 | 386 | $rcIndexes = array( 'rc_timestamp' ); |
— | — | @@ -404,7 +404,7 @@ |
405 | 405 | |
406 | 406 | return array( |
407 | 407 | 'tables' => array( 'recentchanges', 'page' ), |
408 | | - 'fields' => 'page_namespace,page_title, rc_cur_id, rc_user,rc_user_text,rc_comment, |
| 408 | + 'fields' => 'rc_namespace,rc_title, rc_cur_id, rc_user,rc_user_text,rc_comment, |
409 | 409 | rc_timestamp,rc_patrolled,rc_id,page_len as length, page_latest as rev_id', |
410 | 410 | 'conds' => $conds, |
411 | 411 | 'options' => array( 'USE INDEX' => array('recentchanges' => $rcIndexes) ) |
— | — | @@ -425,7 +425,7 @@ |
426 | 426 | while( $row = $this->mResult->fetchObject() ) { |
427 | 427 | $linkBatch->add( NS_USER, $row->rc_user_text ); |
428 | 428 | $linkBatch->add( NS_USER_TALK, $row->rc_user_text ); |
429 | | - $linkBatch->add( $row->page_namespace, $row->page_title ); |
| 429 | + $linkBatch->add( $row->rc_namespace, $row->rc_title ); |
430 | 430 | } |
431 | 431 | $linkBatch->execute(); |
432 | 432 | return "<ul>"; |