diff options
Diffstat (limited to '')
-rw-r--r-- | admin/picture_modify.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/admin/picture_modify.php b/admin/picture_modify.php index 57a78aaf2..a4bde5179 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -94,14 +94,7 @@ SELECT category_id if (isset($_GET['sync_metadata'])) { - $query = ' -SELECT path - FROM '.IMAGES_TABLE.' - WHERE id = '.$_GET['image_id'].' -;'; - list($path) = pwg_db_fetch_row(pwg_query($query)); - update_metadata(array($_GET['image_id'] => $path)); - + sync_metadata(array( intval($_GET['image_id']))); array_push($page['infos'], l10n('Metadata synchronized from file')); } |