diff --git a/admin/picture_modify.php b/admin/picture_modify.php index 0e0aed520..f7897f4dc 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -118,6 +118,8 @@ if (isset($_GET['sync_metadata'])) //--------------------------------------------------------- update informations if (isset($_POST['submit'])) { + check_pwg_token(); + $data = array(); $data['id'] = $_GET['image_id']; $data['name'] = $_POST['name']; @@ -445,6 +447,7 @@ $template->assign(array( 'represented_albums' => $represented_albums, 'STORAGE_ALBUM' => $storage_category_id, 'CACHE_KEYS' => get_admin_client_cache_keys(array('tags', 'categories')), + 'PWG_TOKEN' => get_pwg_token(), )); trigger_notify('loc_end_picture_modify'); diff --git a/admin/themes/default/template/picture_modify.tpl b/admin/themes/default/template/picture_modify.tpl index 4a66cafe4..7aab2831a 100644 --- a/admin/themes/default/template/picture_modify.tpl +++ b/admin/themes/default/template/picture_modify.tpl @@ -151,6 +151,7 @@ jQuery("a.preview-box").colorbox({
+