diff options
author | z0rglub <z0rglub@piwigo.org> | 2004-11-01 15:01:28 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2004-11-01 15:01:28 +0000 |
commit | b1db5e55ae77c1ce386b25f8083a8bdd88607a96 (patch) | |
tree | 1d49d20a6cd52a82b1373c4e7784e931fd563eb0 /admin/cat_list.php | |
parent | fa9a5cd07bc9931d1dffb9c54ab93ce3736ac506 (diff) |
- synchronization interface redesigned : a form lets user choose option of
dirs/files/metadata sync on all categories or a defined one (including
subcategories)
- database sync is only available through update.php
git-svn-id: http://piwigo.org/svn/trunk@589 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/cat_list.php | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/admin/cat_list.php b/admin/cat_list.php index dc69a5179..a1746b106 100644 --- a/admin/cat_list.php +++ b/admin/cat_list.php @@ -270,16 +270,6 @@ UPDATE '.CATEGORIES_TABLE.' } reset($categories); // +-----------------------------------------------------------------------+ -// | metadata update | -// +-----------------------------------------------------------------------+ -if (isset($_GET['metadata']) and is_numeric($_GET['metadata'])) -{ - $files = get_filelist($_GET['metadata'], true, false); - update_metadata($files); - array_push($infos, - count($files).' '.$lang['cat_list_update_metadata_confirmation']); -} -// +-----------------------------------------------------------------------+ // | template initialization | // +-----------------------------------------------------------------------+ $template->set_filenames(array('categories'=>'admin/cat_list.tpl')); @@ -297,7 +287,6 @@ $template->assign_vars(array( 'L_EDIT'=>$lang['edit'], 'L_INFO_IMG'=>$lang['cat_image_info'], 'L_DELETE'=>$lang['delete'], - 'L_UPDATE_METADATA'=>$lang['cat_list_update_metadata'] )); $tpl = array('cat_first','cat_last'); @@ -396,13 +385,7 @@ SELECT COUNT(id) AS nb_sub_cats 'U_CAT_DELETE'=>add_session_id($self_url.'&delete='.$category['id']), 'U_INFO_IMG' - => add_session_id($base_url.'infos_images&cat_id='.$category['id']), - - 'U_CAT_UPDATE'=> - add_session_id($base_url.'update&update='.$category['id']), - - 'U_CAT_METADATA'=> - add_session_id($cat_list_url.'&metadata='.$category['id']) + => add_session_id($base_url.'infos_images&cat_id='.$category['id']) )); if (!empty($category['dir'])) @@ -413,17 +396,6 @@ SELECT COUNT(id) AS nb_sub_cats { $template->assign_block_vars('category.virtual' ,array()); } - - if ($category['site_id'] == 1 and !empty($category['dir'])) - { - $template->assign_block_vars('category.update' ,array()); - $template->assign_block_vars('category.metadata' ,array()); - } - else - { - $template->assign_block_vars('category.no_update' ,array()); - $template->assign_block_vars('category.no_metadata' ,array()); - } if ($category['nb_images'] > 0) { |