diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-03-22 01:01:47 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-03-22 01:01:47 +0000 |
commit | 0971ce48d217b7cc8081ae70c4b041ab23fdf29c (patch) | |
tree | 841bd14e9c2a19c207fb8479b1a086112795d04a /comments.php | |
parent | 3609c224c74f50a9049524ebedc996ddd1187108 (diff) |
URL rewriting: capable of fully working with urls without ?
URL rewriting: works with image file instead of image id (change
make_picture_url to generate urls with file name instead of image id)
URL rewriting: completely works with category/best_rated and
picture/best_rated/534 (change 'category.php?' to 'category' in make_index_url
and 'picture.php?' to 'picture' in make_picture_url to see it)
fix: picture category display in upper bar
fix: function rate_picture variables and use of the new user type
fix: caddie icon appears now on category page
fix: admin element_set sql query was using storage_category_id column
(column has moved to #image_categories)
fix: replaced some old $_GET[xxx] with $page[xxx]
fix: pictures have metadata url (use ? parameter - might change later)
git-svn-id: http://piwigo.org/svn/trunk@1092 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'comments.php')
-rw-r--r-- | comments.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/comments.php b/comments.php index 8719a58cc..bd332b46e 100644 --- a/comments.php +++ b/comments.php @@ -66,7 +66,7 @@ $since_options = array( 'clause' => '1=1') // stupid but generic ); -$page['since'] = isset($_GET['since']) ? $_GET['since'] : 1; +$page['since'] = isset($_GET['since']) ? $_GET['since'] : 3; // on which field sorting // @@ -393,7 +393,7 @@ SELECT id, uppercats { // name of the picture $name = get_cat_display_name_cache( - $categories[$comment['category_id']]['uppercats'], '', false); + $categories[$comment['category_id']]['uppercats'], null, false); $name.= $conf['level_separator']; if (!empty($elements[$comment['image_id']]['name'])) { @@ -411,9 +411,6 @@ SELECT id, uppercats ); // link to the full size picture - $url = PHPWG_ROOT_PATH.'picture.php?cat='.$comment['category_id']; - $url.= '&image_id='.$comment['image_id']; - $url = make_picture_url( array( 'category' => $comment['category_id'], |