diff --git a/images/b_edit.png b/images/b_edit.png new file mode 100644 index 0000000..05711a0 Binary files /dev/null and b/images/b_edit.png differ diff --git a/tagedit.php b/tagedit.php index 57a9466..e7b46a1 100644 --- a/tagedit.php +++ b/tagedit.php @@ -47,7 +47,7 @@ if(!$userservice->isLoggedOn()) { if (POST_CONFIRM) { if ( strlen($tag)>0 && - $tagservice->updateDescription($tag, $currentUser->getId(), POST_DESCRIPTION) + $tagservice->updateDescription($tag, $currentUser->getId(), stripslashes(POST_DESCRIPTION)) ) { $tplVars['msg'] = T_('Tag description updated'); header('Location: '. POST_REFERRER); diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php index 2b30d87..c95e129 100644 --- a/templates/bookmarks.tpl.php +++ b/templates/bookmarks.tpl.php @@ -45,8 +45,8 @@ if(isset($currenttag) && $currenttag!= '' && $cdservice->getLastTagDescription($ //common tag description edit if($userservice->isLoggedOn()) { if(isset($currenttag) && $currenttag!= '') { - echo ' ('; - echo T_('edit common description').')'; + echo ' '; + echo T_('common description').' '; } elseif(isset($hash)) { echo ' ('; echo T_('edit common description').')'; @@ -57,7 +57,7 @@ if($userservice->isLoggedOn()) { getUserByUsername($user); if($tagservice->getDescription($currenttag, $userObject['uId'])) { ?> @@ -65,6 +65,14 @@ if(isset($currenttag) && $currenttag!= '' && isset($user)) {
getDescription($currenttag, $userObject['uId']); echo nl2br(filter($description['tDescription'])); + +//personal tag description edit +if($userservice->isLoggedOn()) { + if(isset($currenttag) && $currenttag!= '') { + echo ' '; + echo T_('personal description').' '; + } +} ?>