diff --git a/admin/picture_modify.php b/admin/picture_modify.php index d58d057a1..9f2db541b 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -374,7 +374,7 @@ while ($row = pwg_db_fetch_assoc($result)) $template->assign('STORAGE_CATEGORY', $name); } - $related_categories[$row['category_id']] = array('name' => $name, 'isVirtual' => !isset($row['dir'])); + $related_categories[$row['category_id']] = array('name' => $name, 'unlinkable' => $row['category_id'] != $storage_category_id); $related_categories_ids[] = $row['category_id']; } diff --git a/admin/themes/default/template/picture_modify.tpl b/admin/themes/default/template/picture_modify.tpl index 563978725..c3c616f63 100644 --- a/admin/themes/default/template/picture_modify.tpl +++ b/admin/themes/default/template/picture_modify.tpl @@ -187,7 +187,7 @@ $('#action-delete-picture').on('click', function() {