aboutsummaryrefslogtreecommitdiffstats
path: root/admin/site_update.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2006-04-26 21:08:44 +0000
committerplegall <plg@piwigo.org>2006-04-26 21:08:44 +0000
commita52bf8e293c0b55b4d877b154bfd349486897d99 (patch)
treed708a788df1f5c2f6dcbd4ca62e757938d65d5e0 /admin/site_update.php
parent79cabc6fd9a9b48e89b28de51f32078d2a75cd30 (diff)
merge -r1276:1277 from branch-1_6 to trunk (bug 228 fixed)
git-svn-id: http://piwigo.org/svn/trunk@1278 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/site_update.php')
-rw-r--r--admin/site_update.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/admin/site_update.php b/admin/site_update.php
index 547e72c36..ac4c22c24 100644
--- a/admin/site_update.php
+++ b/admin/site_update.php
@@ -247,12 +247,13 @@ SELECT IF(MAX(id)+1 IS NULL, 1, MAX(id)+1) AS next_id
'dir' => $dir,
'name' => str_replace('_', ' ', $dir),
'site_id' => $site_id,
- 'commentable' => $conf['newcat_default_commentable'],
+ 'commentable' =>
+ boolean_to_string($conf['newcat_default_commentable']),
'uploadable' => $site_is_remote
? false
- : $conf['newcat_default_uploadable'],
- 'status' => $conf{'newcat_default_status'},
- 'visible' => $conf{'newcat_default_visible'},
+ : boolean_to_string($conf['newcat_default_uploadable']),
+ 'status' => boolean_to_string($conf{'newcat_default_status'}),
+ 'visible' => boolean_to_string($conf{'newcat_default_visible'}),
);
if (isset($db_fulldirs[dirname($fulldir)]))