diff --git a/admin/cat_list.php b/admin/cat_list.php index 3a6747006..0d7b38a0a 100644 --- a/admin/cat_list.php +++ b/admin/cat_list.php @@ -326,7 +326,8 @@ foreach ($categories as $category) 'U_ADD_PHOTOS_ALBUM' => $base_url.'photos_add&album='.$category['id'], 'U_MOVE' => $base_url.'albums#cat-'.$category['id'], - 'IS_VIRTUAL' => empty($category['dir']) + 'IS_VIRTUAL' => empty($category['dir']), + 'CAT_ADMIN_ACCESS' => cat_admin_access($category['id']), ); if (empty($category['dir'])) diff --git a/admin/cat_modify.php b/admin/cat_modify.php index af8f7cb44..66c256882 100644 --- a/admin/cat_modify.php +++ b/admin/cat_modify.php @@ -187,6 +187,7 @@ $template->assign( 'CAT_NAME' => @htmlspecialchars($category['name']), 'CAT_COMMENT' => @htmlspecialchars($category['comment']), 'IS_VISIBLE' => boolean_to_string($category['visible']), + 'CAT_ADMIN_ACCESS' => cat_admin_access($category['id']), 'U_DELETE' => $base_url.'albums', diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl index 94d1bec7d..38bec6c9c 100644 --- a/admin/themes/default/template/batch_manager_global.tpl +++ b/admin/themes/default/template/batch_manager_global.tpl @@ -64,7 +64,7 @@ jQuery(document).ready(function() { var nb_thumbs_page = {$nb_thumbs_page}; var nb_thumbs_set = {$nb_thumbs_set}; var applyOnDetails_pattern = "{'on the %d selected photos'|@translate}"; -var all_elements = [{if !empty($all_elements)}{','|@implode:$all_elements}{/if}]; +var all_elements = [{if !empty($all_elements)}{$all_elements|join:","}{/if}]; var selectedMessage_pattern = "{'%d of %d photos selected'|@translate}"; var selectedMessage_none = "{'No photo selected, %d photos in current set'|@translate}"; diff --git a/admin/themes/default/template/batch_manager_unit.tpl b/admin/themes/default/template/batch_manager_unit.tpl index bb5497d15..75092fd45 100644 --- a/admin/themes/default/template/batch_manager_unit.tpl +++ b/admin/themes/default/template/batch_manager_unit.tpl @@ -236,7 +236,7 @@ pluginValues = []; {/if}