From 0858ba7f72c5cf5626898b81429b2f88911b9dfb Mon Sep 17 00:00:00 2001 From: mensonge Date: Thu, 11 Sep 2008 14:10:58 +0000 Subject: [PATCH] Bug fix: renametag function corrected (thank you Andreas) git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@144 b3834d28-1941-0410-a4f8-b48e95affb8f --- services/tagservice.php | 1 + tagrename.php | 1 + 2 files changed, 2 insertions(+) diff --git a/services/tagservice.php b/services/tagservice.php index fbb7fa3..47f82d6 100644 --- a/services/tagservice.php +++ b/services/tagservice.php @@ -72,6 +72,7 @@ class TagService { $query.= ' WHERE tag="'.$oldName.'"'; $query.= ' AND uId="'.$uId.'"'; $this->db->sql_query($query); + return true; } diff --git a/tagrename.php b/tagrename.php index de0f77f..29b44fb 100644 --- a/tagrename.php +++ b/tagrename.php @@ -21,6 +21,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA require_once('header.inc.php'); $b2tservice = & ServiceFactory :: getServiceInstance('Bookmark2TagService'); +$tagservice = & ServiceFactory :: getServiceInstance('TagService'); $tag2tagservice = & ServiceFactory :: getServiceInstance('Tag2tagService'); $templateservice = & ServiceFactory :: getServiceInstance('TemplateService'); $userservice = & ServiceFactory :: getServiceInstance('UserService');