mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
fixes #377 use Ajax calls to refresh/delete album thumbnail
This commit is contained in:
@@ -886,6 +886,25 @@ SELECT uppercats
|
||||
return $uppercats;
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
function get_category_representant_properties($image_id)
|
||||
{
|
||||
$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);
|
||||
$url = get_root_url().'admin.php?page=photo-'.$image_id;
|
||||
|
||||
return array(
|
||||
'src' => $src,
|
||||
'url' => $url
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a new random representant to the categories.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user