From 2fa1013ace21fe6df7beb9c8505a256244fa637e Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sun, 11 Nov 2012 15:01:09 +0000 Subject: feature:2786 Allow to edit website url in user comments + improve "user experience" on comment edition git-svn-id: http://piwigo.org/svn/trunk@18995 68402e56-0260-453c-a942-63ccdbb3a9ee --- picture.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'picture.php') diff --git a/picture.php b/picture.php index 4d89edc77..663a192b3 100644 --- a/picture.php +++ b/picture.php @@ -349,7 +349,8 @@ UPDATE '.USER_CACHE_CATEGORIES_TABLE.' array( 'comment_id' => $_GET['comment_to_edit'], 'image_id' => $page['image_id'], - 'content' => $_POST['content'] + 'content' => $_POST['content'], + 'website_url' => @$_POST['website_url'], ), $_POST['key'] ); @@ -365,7 +366,6 @@ UPDATE '.USER_CACHE_CATEGORIES_TABLE.' break; case 'reject': $_SESSION['page_errors'][] = l10n('Your comment has NOT been registered because it did not pass the validation rules'); - $perform_redirect = true; break; default: trigger_error('Invalid comment action '.$comment_action, E_USER_WARNING); @@ -377,10 +377,8 @@ UPDATE '.USER_CACHE_CATEGORIES_TABLE.' } unset($_POST['content']); } - else - { - $edit_comment = $_GET['comment_to_edit']; - } + + $edit_comment = $_GET['comment_to_edit']; } break; } -- cgit v1.2.3