Index: branches/wmf/1.18wmf1/extensions/CodeReview/ui/CodeRevisionTagView.php |
— | — | @@ -27,6 +27,13 @@ |
28 | 28 | |
29 | 29 | function getQueryInfo() { |
30 | 30 | $info = parent::getQueryInfo(); |
| 31 | + |
| 32 | + if ( $this->mView->mPath ) { |
| 33 | + array_unshift( $info['tables'], 'code_paths' ); |
| 34 | + $info['conds'][] = 'cr_repo_id=cp_repo_id'; |
| 35 | + $info['conds'][] = 'cr_id=cp_rev_id'; |
| 36 | + $info['conds']['cp_path'] = $this->mView->mPath; |
| 37 | + } |
31 | 38 | //Don't change table order, see http://www.mediawiki.org/wiki/Special:Code/MediaWiki/77733 |
32 | 39 | //Bug in mysql 4 allowed incorrect table ordering joins to work |
33 | 40 | array_unshift( $info['tables'], 'code_tags' ); |
Property changes on: branches/wmf/1.18wmf1/extensions/CodeReview |
___________________________________________________________________ |
Modified: svn:mergeinfo |
34 | 41 | Merged /trunk/extensions/CodeReview:r100911 |