Index: trunk/extensions/CodeReview/backend/CodeRepository.php |
— | — | @@ -5,6 +5,8 @@ |
6 | 6 | static $userLinks = array(); |
7 | 7 | static $authorLinks = array(); |
8 | 8 | |
| 9 | + public $mId, $mName, $mPath, $mViewVc, $mBugzilla; |
| 10 | + |
9 | 11 | public static function newFromName( $name ) { |
10 | 12 | $dbw = wfGetDB( DB_MASTER ); |
11 | 13 | $row = $dbw->selectRow( |
— | — | @@ -150,7 +152,7 @@ |
151 | 153 | 'ORDER BY' => 'revs DESC', 'LIMIT' => 500 ) |
152 | 154 | ); |
153 | 155 | $tags = array(); |
154 | | - while ( $row = $dbr->fetchObject( $res ) ) { |
| 156 | + foreach( $res as $row ) { |
155 | 157 | $tags[] = $row->ct_tag; |
156 | 158 | } |
157 | 159 | $wgMemc->set( $key, $tags, 3600 * 3 ); |
Index: trunk/extensions/CodeReview/backend/CodeComment.php |
— | — | @@ -2,6 +2,8 @@ |
3 | 3 | if ( !defined( 'MEDIAWIKI' ) ) die(); |
4 | 4 | |
5 | 5 | class CodeComment { |
| 6 | + public $id, $text, $user, $userText, $timestamp, $review, $sortkey, $attrib, $removed, $added; |
| 7 | + |
6 | 8 | function __construct( $rev ) { |
7 | 9 | $this->rev = $rev; |
8 | 10 | } |