From e584310d3a51bcae7be00513a852ad43e22c585b Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 21 Mar 2006 01:27:21 +0000 Subject: URL rewriting: fix some old links, calendar simplification and prepare code for urls without ? (added functions get_root_url and add_url_param) git-svn-id: http://piwigo.org/svn/trunk@1090 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/rating.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'admin/rating.php') diff --git a/admin/rating.php b/admin/rating.php index 5d563d1a6..76b4aa865 100644 --- a/admin/rating.php +++ b/admin/rating.php @@ -138,7 +138,7 @@ $template->assign_vars( PHPWG_ROOT_PATH.'admin.php'.get_query_string_diff(array('start','del')), $nb_images, $start, - $elements_per_page, + $elements_per_page ) ) ); @@ -208,11 +208,13 @@ foreach ($images as $image) { $thumbnail_src = get_thumbnail_src($image['path'], $image['tn_ext']); - $image_url = - PHPWG_ROOT_PATH.'picture.php?'. - 'cat=' . $image['storage_category_id']. - '&image_id=' . $image['id'] - ; + $image_url = make_picture_url( + array( + 'category' => $image['storage_category_id'], + 'image_id' => $image['id'], + 'image_file' => $image['file'], + ) + ); $query = 'SELECT * FROM '.RATE_TABLE.' AS r -- cgit v1.2.3