Index: trunk/extensions/CodeReview/CodeRevision.php |
— | — | @@ -230,8 +230,15 @@ |
231 | 231 | |
232 | 232 | function removeTags( $tags ) { |
233 | 233 | $dbw = wfGetDB( DB_MASTER ); |
| 234 | + $tagsNormal = array(); |
| 235 | + foreach( $tags as $tag ) { |
| 236 | + $tagsNormal[] = $this->normalizeTag( $tag ); |
| 237 | + } |
234 | 238 | $result = $dbw->delete( 'code_tags', |
235 | | - $this->tagData( $tags ), |
| 239 | + array( |
| 240 | + 'ct_repo_id' => $this->mRepo, |
| 241 | + 'ct_rev_id' => $this->mId, |
| 242 | + 'ct_tag' => $tagsNormal ), |
236 | 243 | __METHOD__ ); |
237 | 244 | } |
238 | 245 | |