aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2012-04-02 20:49:46 +0000
committerrvelices <rv-github@modusoptimus.com>2012-04-02 20:49:46 +0000
commit9c06bb55645c314541fdcff9e9611b38ca0694ac (patch)
treef1a544171c581cceaedd91b8a73c22ab17516541 /picture.php
parent9c6f27c0e127ba1d54435ade0045c591da0de65a (diff)
- comment edit form looks ok now with the new comment layout
- removed unused css / simplify it - simplified jquery drop boxes ... git-svn-id: http://piwigo.org/svn/trunk@13865 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--picture.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/picture.php b/picture.php
index bb5c79cab..44216f49d 100644
--- a/picture.php
+++ b/picture.php
@@ -332,9 +332,8 @@ UPDATE '.USER_CACHE_CATEGORIES_TABLE.'
rate_picture($page['image_id'], $_POST['rate']);
redirect($url_self);
}
- case 'edit_comment' :
+ case 'edit_comment':
{
- check_pwg_token();
include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php');
check_input_parameter('comment_to_edit', $_GET, false, PATTERN_ID);
$author_id = get_comment_author_id($_GET['comment_to_edit']);
@@ -343,6 +342,7 @@ UPDATE '.USER_CACHE_CATEGORIES_TABLE.'
{
if (!empty($_POST['content']))
{
+ check_pwg_token();
$comment_action = update_user_comment(
array(
'comment_id' => $_GET['comment_to_edit'],
@@ -374,14 +374,13 @@ UPDATE '.USER_CACHE_CATEGORIES_TABLE.'
redirect($url_self);
}
unset($_POST['content']);
- break;
}
else
{
$edit_comment = $_GET['comment_to_edit'];
- break;
}
}
+ break;
}
case 'delete_comment' :
{