aboutsummaryrefslogtreecommitdiffstats
path: root/admin/rating.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-03-21 01:27:21 +0000
committerrvelices <rv-github@modusoptimus.com>2006-03-21 01:27:21 +0000
commite584310d3a51bcae7be00513a852ad43e22c585b (patch)
tree649befce1fa32157838995e25a720dc0f0dbed3c /admin/rating.php
parent0c08b2561aa95b134499a157dd5a90b89460cff8 (diff)
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
Diffstat (limited to '')
-rw-r--r--admin/rating.php14
1 files changed, 8 insertions, 6 deletions
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'].
- '&amp;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