mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-12 03:33:01 +02:00
bug 228 fixed: use boolean value instead of strings for configuration
parameteres newcat_default_*. git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1277 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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)]))
|
||||
|
||||
Reference in New Issue
Block a user