summaryrefslogtreecommitdiff
path: root/services/tag2tagservice.php
diff options
context:
space:
mode:
Diffstat (limited to 'services/tag2tagservice.php')
-rw-r--r--services/tag2tagservice.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/tag2tagservice.php b/services/tag2tagservice.php
index 4cce66d..a2d7ac3 100644
--- a/services/tag2tagservice.php
+++ b/services/tag2tagservice.php
@@ -270,6 +270,9 @@ class Tag2TagService {
}
function renameTag($uId, $oldName, $newName) {
+ $tagservice =& ServiceFactory::getServiceInstance('TagService');
+ $newName = $tagservice->normalize($newName);
+
$query = 'UPDATE `'. $this->getTableName() .'`';
$query.= ' SET tag1="'.$newName.'"';
$query.= ' WHERE tag1="'.$oldName.'"';