From 57a5cbfd88b2b91722ce0bf6911b416d051dde65 Mon Sep 17 00:00:00 2001 From: Dan Vratil Date: Sun, 21 Nov 2010 02:59:07 -0500 Subject: Auto redirect from confirmation screens. Finally move comment deletion and category editing into functions and remove pkgedit.php Signed-off-by: Loui Chang -Fix indentation -Fix variable naming conflict $id vs $cid --- web/template/pkg_comments.php | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'web/template/pkg_comments.php') diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php index 02171a0..e4a9da1 100644 --- a/web/template/pkg_comments.php +++ b/web/template/pkg_comments.php @@ -3,20 +3,25 @@ $uid = uid_from_sid($SID); while (list($indx, $carr) = each($comments)) { ?>
'; - - echo $durl; - } if ($SID) { $carr['UserName'] = "{$carr['UserName']}"; } - echo __('Comment by: %s on %s', $carr['UserName'], gmdate('r', $carr['CommentTS'])); + $commentHeader =__('Comment by: %s on %s', $carr['UserName'], gmdate('r', $carr['CommentTS'])); + + if (canDeleteCommentArray($carr, $atype, $uid)) { + $durl = '
'; + $durl.= ''; + $durl.= ''; + $durl.= '"; + } + + echo $commentHeader; ?>
-- cgit v1.2.3-54-g00ecf