aboutsummaryrefslogtreecommitdiffstats
path: root/admin/cat_list.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-05-25 09:01:55 +0000
committerplegall <plg@piwigo.org>2011-05-25 09:01:55 +0000
commit663d72e06306108d1b06ae0919c6bf8325c2a9f5 (patch)
tree688b91d5f0d9c38986ce127ac4519b623d0f9884 /admin/cat_list.php
parentdec961c95f7d3e160aafa95251bd4692408d5df9 (diff)
bug 1786 fixed: ability to prefilter the synchronize screen with a specific
album by clicking on the new "Synchronize" icon on album admin page or album admin list. This is not the solution proposed by Gotcha (ie a treeview to select the album on the synchronize screen) but it solves the same problem. git-svn-id: http://piwigo.org/svn/branches/2.2@11040 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/cat_list.php')
-rw-r--r--admin/cat_list.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/admin/cat_list.php b/admin/cat_list.php
index ae957792d..050b7c06a 100644
--- a/admin/cat_list.php
+++ b/admin/cat_list.php
@@ -307,6 +307,13 @@ foreach ($categories as $category)
$tpl_cat['U_DELETE'] = $self_url.'&amp;delete='.$category['id'];
$tpl_cat['U_DELETE'].= '&amp;pwg_token='.get_pwg_token();
}
+ else
+ {
+ if ($conf['enable_synchronization'])
+ {
+ $tpl_cat['U_SYNC'] = $base_url.'site_update&amp;site=1&amp;cat_id='.$category['id'];
+ }
+ }
if ( array_key_exists($category['id'], $categories_with_images) )
{