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);
//common tag description edit
if($userservice->isLoggedOn()) {
if(isset($currenttag) && $currenttag!= '') {
- echo ' (<a href="'. createURL('tagcommondescriptionedit', $currenttag).'">';
- echo T_('edit common description').'</a>)';
+ echo ' <a href="'. createURL('tagcommondescriptionedit', $currenttag).'">';
+ echo T_('common description').' <img src="'.ROOT.'images/b_edit.png" /></a>';
} elseif(isset($hash)) {
echo ' (<a href="'.createURL('bookmarkcommondescriptionedit', $hash).'">';
echo T_('edit common description').'</a>)';
<?php
-/* Private tag description */
+/* personal tag description */
if(isset($currenttag) && $currenttag!= '' && isset($user)) {
$userObject = $userservice->getUserByUsername($user);
if($tagservice->getDescription($currenttag, $userObject['uId'])) { ?>
<p class="commondescription"><?php
$description = $tagservice->getDescription($currenttag, $userObject['uId']);
echo nl2br(filter($description['tDescription']));
+
+//personal tag description edit
+if($userservice->isLoggedOn()) {
+ if(isset($currenttag) && $currenttag!= '') {
+ echo ' <a href="'. createURL('tagedit', $currenttag).'">';
+ echo T_('personal description').' <img src="'.ROOT.'images/b_edit.png" /></a>';
+ }
+}
?></p>
<?php