From: Domas Mituzas Date: Mon, 25 Aug 2008 09:44:20 +0000 (+0000) Subject: revert rev#36938 X-Git-Tag: 1.31.0-rc.0~45682 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=f9e99ecdcc939832132932985abf92e73e8cf5f9;p=lhc%2Fweb%2Fwiklou.git revert rev#36938 --- diff --git a/includes/specials/SpecialNewpages.php b/includes/specials/SpecialNewpages.php index dacca847e9..5d849388a8 100644 --- a/includes/specials/SpecialNewpages.php +++ b/includes/specials/SpecialNewpages.php @@ -231,7 +231,7 @@ class SpecialNewpages extends SpecialPage { global $wgLang, $wgContLang, $wgUser; $dm = $wgContLang->getDirMark(); - $title = Title::makeTitleSafe( $result->page_namespace, $result->page_title ); + $title = Title::makeTitleSafe( $result->rc_namespace, $result->rc_title ); $time = $wgLang->timeAndDate( $result->rc_timestamp, true ); $plink = $this->skin->makeKnownLinkObj( $title, '', $this->patrollable( $result ) ? 'rcid=' . $result->rc_id : '' ); $hist = $this->skin->makeKnownLinkObj( $title, wfMsgHtml( 'hist' ), 'action=history' ); @@ -305,7 +305,7 @@ class SpecialNewpages extends SpecialPage { } protected function feedItem( $row ) { - $title = Title::MakeTitle( intval( $row->page_namespace ), $row->page_title ); + $title = Title::MakeTitle( intval( $row->rc_namespace ), $row->rc_title ); if( $title ) { $date = $row->rc_timestamp; $comments = $title->getTalkPage()->getFullURL(); @@ -379,7 +379,7 @@ class NewPagesPager extends ReverseChronologicalPager { $user = Title::makeTitleSafe( NS_USER, $username ); if( $namespace !== false ) { - $conds['page_namespace'] = $namespace; + $conds['rc_namespace'] = $namespace; $rcIndexes = array( 'new_name_timestamp' ); } else { $rcIndexes = array( 'rc_timestamp' ); @@ -404,7 +404,7 @@ class NewPagesPager extends ReverseChronologicalPager { return array( 'tables' => array( 'recentchanges', 'page' ), - 'fields' => 'page_namespace,page_title, rc_cur_id, rc_user,rc_user_text,rc_comment, + 'fields' => 'rc_namespace,rc_title, rc_cur_id, rc_user,rc_user_text,rc_comment, rc_timestamp,rc_patrolled,rc_id,page_len as length, page_latest as rev_id', 'conds' => $conds, 'options' => array( 'USE INDEX' => array('recentchanges' => $rcIndexes) ) @@ -425,7 +425,7 @@ class NewPagesPager extends ReverseChronologicalPager { while( $row = $this->mResult->fetchObject() ) { $linkBatch->add( NS_USER, $row->rc_user_text ); $linkBatch->add( NS_USER_TALK, $row->rc_user_text ); - $linkBatch->add( $row->page_namespace, $row->page_title ); + $linkBatch->add( $row->rc_namespace, $row->rc_title ); } $linkBatch->execute(); return "