r79629 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79628‎ | r79629 | r79630 >
Date:22:43, 4 January 2011
Author:reedy
Status:ok
Tags:
Comment:
Fix copy paste fail. Grr
Modified paths:
  • /trunk/extensions/CodeReview/ui/CodeCommentsListView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/ui/CodeCommentsListView.php
@@ -49,7 +49,7 @@
5050 }
5151
5252 function getQueryInfo() {
53 - return array(
 53+ $query = array(
5454 'tables' => array( 'code_comment', 'code_rev' ),
5555 'fields' => array_keys( $this->getFieldNames() ),
5656 'conds' => array( 'cc_repo_id' => $this->mRepo->getId() ),
@@ -57,10 +57,16 @@
5858 'code_rev' => array( 'LEFT JOIN', 'cc_repo_id = cr_repo_id AND cc_rev_id = cr_id' )
5959 )
6060 );
 61+
 62+ if( $this->mView->mAuthor ) {
 63+ $query['conds']['cc_user_text'] = $this->mView->mAuthor;
 64+ }
 65+
 66+ return $query;
6167 }
6268
6369 function getFieldNames() {
64 - $query = array(
 70+ return array(
6571 'cc_timestamp' => wfMsg( 'code-field-timestamp' ),
6672 'cc_user_text' => wfMsg( 'code-field-user' ),
6773 'cc_rev_id' => wfMsg( 'code-field-id' ),
@@ -68,12 +74,6 @@
6975 'cr_message' => wfMsg( 'code-field-message' ),
7076 'cc_text' => wfMsg( 'code-field-text' ),
7177 );
72 -
73 - if( $this->mView->mAuthor ) {
74 - $query['conds']['cc_user_text'] = $this->mView->mAuthor;
75 - }
76 -
77 - return $query;
7878 }
7979
8080 function formatValue( $name, $value ) {

Status & tagging log