From 5ae74aac0427a7b5368b5694c6aeb588a698d674 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Thu, 21 Jun 2012 13:39:25 +0000 Subject: on comment_list add link to exit from comment edition git-svn-id: http://piwigo.org/svn/trunk@15924 68402e56-0260-453c-a942-63ccdbb3a9ee --- comments.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'comments.php') diff --git a/comments.php b/comments.php index d23e992c7..570e88997 100644 --- a/comments.php +++ b/comments.php @@ -364,6 +364,10 @@ $navbar = create_navigation_bar($url, $template->assign('navbar', $navbar); +$url_self = PHPWG_ROOT_PATH + .'comments.php' + .get_query_string_diff(array('edit','delete','validate','pwg_token')); + // +-----------------------------------------------------------------------+ // | last comments display | // +-----------------------------------------------------------------------+ @@ -515,6 +519,7 @@ SELECT c.id, name, permalink, uppercats, com.id as comment_id $tpl_comment['IMAGE_ID'] = $comment['image_id']; $tpl_comment['CONTENT'] = $comment['content']; $tpl_comment['PWG_TOKEN'] = get_pwg_token(); + $tpl_comment['U_CANCEL'] = $url_self; } } -- cgit v1.2.3