aboutsummaryrefslogtreecommitdiffstats
path: root/admin/photos_add.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/photos_add.php15
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