diff options
author | plegall <plg@piwigo.org> | 2010-05-25 22:29:31 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-05-25 22:29:31 +0000 |
commit | 5488e86ada315f6f646796a0efa043e6744098b0 (patch) | |
tree | 8f97335fbb2751f26bd7eb1464d4b5a9f1cad045 /admin/photos_add.php | |
parent | 4dd9061a17d265c653087c50303915ca3c2ea9b5 (diff) |
feature 1697: ability to deactivate the synchronization method to add photos.
git-svn-id: http://piwigo.org/svn/branches/2.1@6361 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/photos_add.php | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/admin/photos_add.php b/admin/photos_add.php index af3b84211..54db3113c 100644 --- a/admin/photos_add.php +++ b/admin/photos_add.php @@ -152,12 +152,19 @@ $tabs = array( 'code' => 'ploader', 'label' => l10n('Piwigo Uploader'), ), - array( - 'code' => 'ftp', - 'label' => l10n('FTP + Synchronization'), - ), ); +if ($conf['enable_synchronization']) +{ + array_push( + $tabs, + array( + 'code' => 'ftp', + 'label' => l10n('FTP + Synchronization'), + ) + ); +} + $tab_codes = array_map( create_function('$a', 'return $a["code"];'), $tabs |