aboutsummaryrefslogtreecommitdiffstats
path: root/admin/cat_modify.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2011-12-27 05:26:44 +0000
committerrvelices <rv-github@modusoptimus.com>2011-12-27 05:26:44 +0000
commit753f58d6a966a1051dcd62a3eeab8fc18798bcac (patch)
tree2ebbfec86d511aa980e0d23c170bfa5006a8793e /admin/cat_modify.php
parente77e68b7db17c28c1ca44f4865758f2afb871d07 (diff)
feature 2541 multisize
- core implementation + usage on most public/admin pages - still to do: sync process, upload, gui/persistence for size parameters, migration script, center of interest ... git-svn-id: http://piwigo.org/svn/trunk@12796 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/cat_modify.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/admin/cat_modify.php b/admin/cat_modify.php
index 8b83fd205..8c4d59ae9 100644
--- a/admin/cat_modify.php
+++ b/admin/cat_modify.php
@@ -301,12 +301,12 @@ if ($category['has_images']
if (!empty($category['representative_picture_id']))
{
$query = '
-SELECT id,tn_ext,path
+SELECT id,representative_ext,path
FROM '.IMAGES_TABLE.'
WHERE id = '.$category['representative_picture_id'].'
;';
$row = pwg_db_fetch_assoc(pwg_query($query));
- $src = get_thumbnail_url($row);
+ $src = DerivativeImage::thumb_url($row);
$url = get_root_url().'admin.php?page=picture_modify';
$url.= '&amp;image_id='.$category['representative_picture_id'];
@@ -387,7 +387,7 @@ if (isset($_POST['submitEmail']) and !empty($_POST['group']))
if (!empty($category['representative_picture_id']))
{
$query = '
-SELECT id, file, path, tn_ext
+SELECT id, file, path, representative_ext
FROM '.IMAGES_TABLE.'
WHERE id = '.$category['representative_picture_id'].'
;';
@@ -403,7 +403,7 @@ SELECT id, file, path, tn_ext
'image_file' => $element['file'],
'category' => $category
))
- .'" class="thumblnk"><img src="'.get_thumbnail_url($element).'"></a>';
+ .'" class="thumblnk"><img src="'.DerivativeImage::thumb_url($element).'"></a>';
}
}