Issue #1208 : Implementation of the new album edit page

This commit is contained in:
Zacharie
2020-08-12 10:20:29 +02:00
committed by plegall
parent e6b0574cde
commit d4436b825d
7 changed files with 348 additions and 119 deletions
+7 -2
View File
@@ -989,15 +989,20 @@ SELECT uppercats
/**
*/
function get_category_representant_properties($image_id)
function get_category_representant_properties($image_id, $size = NULL)
{
$query = '
SELECT id,representative_ext,path
FROM '.IMAGES_TABLE.'
WHERE id = '.$image_id.'
;';
$row = pwg_db_fetch_assoc(pwg_query($query));
$src = DerivativeImage::thumb_url($row);
if ($size == NULL) {
$src = DerivativeImage::thumb_url($row);
} else {
$src = DerivativeImage::url($size, $row);
}
$url = get_root_url().'admin.php?page=photo-'.$image_id;
return array(