r41625 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41624‎ | r41625 | r41626 >
Date:23:46, 3 October 2008
Author:aaron
Status:old
Tags:
Comment:
* Fix removeTags()
Modified paths:
  • /trunk/extensions/CodeReview/CodeRevision.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/CodeRevision.php
@@ -230,8 +230,15 @@
231231
232232 function removeTags( $tags ) {
233233 $dbw = wfGetDB( DB_MASTER );
 234+ $tagsNormal = array();
 235+ foreach( $tags as $tag ) {
 236+ $tagsNormal[] = $this->normalizeTag( $tag );
 237+ }
234238 $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 ),
236243 __METHOD__ );
237244 }
238245

Status & tagging log