Index: /trunk/comments.php
===================================================================
--- /trunk/comments.php (revision 15923)
+++ /trunk/comments.php (revision 15924)
@@ -364,4 +364,8 @@
$template->assign('navbar', $navbar);
+
+$url_self = PHPWG_ROOT_PATH
+ .'comments.php'
+ .get_query_string_diff(array('edit','delete','validate','pwg_token'));
// +-----------------------------------------------------------------------+
@@ -516,4 +520,5 @@
$tpl_comment['CONTENT'] = $comment['content'];
$tpl_comment['PWG_TOKEN'] = get_pwg_token();
+ $tpl_comment['U_CANCEL'] = $url_self;
}
}
Index: /trunk/include/picture_comment.inc.php
===================================================================
--- /trunk/include/picture_comment.inc.php (revision 15923)
+++ /trunk/include/picture_comment.inc.php (revision 15924)
@@ -208,4 +208,5 @@
$tpl_comment['CONTENT'] = $row['content'];
$tpl_comment['PWG_TOKEN'] = get_pwg_token();
+ $tpl_comment['U_CANCEL'] = $url_self;
}
}
Index: /trunk/themes/default/template/comment_list.tpl
===================================================================
--- /trunk/themes/default/template/comment_list.tpl (revision 15923)
+++ /trunk/themes/default/template/comment_list.tpl (revision 15924)
@@ -26,4 +26,9 @@
{'Delete'|@translate}
+ {if isset($comment.U_VALIDATE) or isset($comment.U_EDIT) or isset($comment.U_CANCEL)} | {/if}
+ {/if}
+ {if isset($comment.U_CANCEL)}
+
+ {'Cancel'|@translate}
{if isset($comment.U_VALIDATE) or isset($comment.U_EDIT)} | {/if}
{/if}