Index: trunk/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -1129,10 +1129,9 @@ |
1130 | 1130 | * @return array |
1131 | 1131 | */ |
1132 | 1132 | protected function getPathConds( $path ) { |
1133 | | - $dbr = wfGetDB( DB_SLAVE ); |
1134 | 1133 | return array( |
1135 | 1134 | 'cp_repo_id' => $this->mRepoId, |
1136 | | - 'cp_path ' . $dbr->buildLike( $path, $dbr->anyString() ), |
| 1135 | + 'cp_path' => $path, |
1137 | 1136 | // join conds |
1138 | 1137 | 'cr_repo_id = cp_repo_id', |
1139 | 1138 | 'cr_id = cp_rev_id' |