mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
feature 2548 multisize
- rewrote local site sync + metadata sync git-svn-id: http://piwigo.org/svn/trunk@12831 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -382,19 +382,7 @@ DELETE
|
||||
// synchronize metadata
|
||||
if ('metadata' == $action)
|
||||
{
|
||||
$query = '
|
||||
SELECT id, path
|
||||
FROM '.IMAGES_TABLE.'
|
||||
WHERE id IN ('.implode(',', $collection).')
|
||||
;';
|
||||
$id_to_path = array();
|
||||
$result = pwg_query($query);
|
||||
while ($row = pwg_db_fetch_assoc($result))
|
||||
{
|
||||
$id_to_path[$row['id']] = $row['path'];
|
||||
}
|
||||
|
||||
update_metadata($id_to_path);
|
||||
sync_metadata($collection);
|
||||
|
||||
array_push(
|
||||
$page['infos'],
|
||||
|
||||
Reference in New Issue
Block a user