diff --git a/admin/batch_manager_unit.php b/admin/batch_manager_unit.php index 642960c26..d2d875191 100644 --- a/admin/batch_manager_unit.php +++ b/admin/batch_manager_unit.php @@ -251,14 +251,6 @@ SELECT $storage_category_id = $row['storage_category_id']; } - $level_convert = [ - "0" => "4", - "1" => "3", - "2" => "2", - "4" => "1", - "8" => "0", - ]; - foreach ($images as $row) { $element_ids[] = $row['id']; @@ -406,7 +398,6 @@ SELECT 'U_DELETE' => $admin_url_start.'&delete=1&pwg_token='.get_pwg_token(), 'U_SYNC' => $admin_url_start.'&sync_metadata=1', 'PATH'=>$row['path'], - 'LEVEL_CONVERT' => $level_convert[!empty($row['level'])?$row['level']:'0'], 'level_options_selected' => array($selected_level) diff --git a/admin/themes/default/template/batch_manager_unit.tpl b/admin/themes/default/template/batch_manager_unit.tpl index 75092fd45..808c76481 100644 --- a/admin/themes/default/template/batch_manager_unit.tpl +++ b/admin/themes/default/template/batch_manager_unit.tpl @@ -74,13 +74,6 @@ str_meta_warning = "{'Warning ! Unsaved changes will be lost'|translate|escape:j str_meta_yes = "{'I want to continue'|translate|escape:javascript}"; const str_title_ab = "{'Associate to album'|@translate}"; -const strs_privacy = { - "0" : "{$level_options[8]}", - "1" : "{$level_options[4]}", - "2" : "{$level_options[2]}", - "3" : "{$level_options[1]}", - "4" : "{$level_options[0]}", -}; let b_current_picture_id; {* Check Skeleton extension for more details about extensibility *} pluginValues = [];