diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-10-17 02:03:14 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-10-17 02:03:14 +0000 |
commit | 939cfe5e4bc2cb4a3229d1b3f08f6f86b8f348d1 (patch) | |
tree | 8646efbcff768888fbb78397b271e93554cec66f /comments.php | |
parent | 6a3aed205772d73fc5cc60bc8877592fd17ba920 (diff) |
comments.php: cleanup url (t=1 in the url for an unknown reason) and image
urls work now with all url styles
git-svn-id: http://piwigo.org/svn/trunk@1563 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'comments.php')
-rw-r--r-- | comments.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/comments.php b/comments.php index e88ce04fb..28f4bf410 100644 --- a/comments.php +++ b/comments.php @@ -158,7 +158,7 @@ DELETE FROM '.COMMENTS_TABLE.' pwg_query($query); } // comments validation -if (isset($_POST['validate']) and count($_POST['comment_id']) > 0 +if (isset($_POST['validate']) and count($_POST['comment_id']) > 0 and is_admin()) { $_POST['comment_id'] = array_map('intval', $_POST['comment_id']); @@ -308,7 +308,7 @@ $query.= ' ;'; list($counter) = mysql_fetch_row(pwg_query($query)); -$url = PHPWG_ROOT_PATH.'comments.php?t=1'.get_query_string_diff(array('start')); +$url = PHPWG_ROOT_PATH.'comments.php'.get_query_string_diff(array('start')); $navbar = create_navigation_bar($url, $counter, @@ -382,7 +382,7 @@ SELECT id, name, file, path, tn_ext // retrieving category informations $categories = array(); $query = ' -SELECT id, uppercats +SELECT id, name, uppercats FROM '.CATEGORIES_TABLE.' WHERE id IN ('.implode(',', $category_ids).') ;'; @@ -417,6 +417,7 @@ SELECT id, uppercats $url = make_picture_url( array( 'category' => $comment['category_id'], + 'cat_name' => $categories[ $comment['category_id']] ['name'], 'image_id' => $comment['image_id'], 'image_file' => $elements[$comment['image_id']]['file'], ) |