diff options
author | plegall <plg@piwigo.org> | 2006-04-27 21:08:50 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2006-04-27 21:08:50 +0000 |
commit | b0751afea224486bb4b423e569e2c75a502b4e35 (patch) | |
tree | df1273a466fac42bb59e26092fe9219b96207ceb /include/common.inc.php | |
parent | f8d72e48d0f65d5f57aabb236c5fa6e412d88d2b (diff) |
merge -r1281:1283 from branch 1.6 to trunk (bug 228 fixed one more time, and
other little things)
git-svn-id: http://piwigo.org/svn/trunk@1284 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/common.inc.php | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/include/common.inc.php b/include/common.inc.php index f66d1ee7f..8aeafb7bf 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -162,32 +162,7 @@ SELECT id // Setup gallery wide options, if this fails then we output a CRITICAL_ERROR // since basic gallery information is not available // -$query = ' -SELECT param,value - FROM '.CONFIG_TABLE.' -;'; -if (!($result = pwg_query($query))) -{ - die("Could not query config information"); -} - -while ( $row =mysql_fetch_array( $result ) ) -{ - if ( isset( $row['value'] ) ) - { - $conf[$row['param']] = $row['value']; - } - else - { - $conf[$row['param']] = ''; - } - // If the field is true or false, the variable is transformed into a - // boolean value. - if ( $conf[$row['param']] == 'true' or $conf[$row['param']] == 'false' ) - { - $conf[$row['param']] = get_boolean( $conf[$row['param']] ); - } -} +load_conf_from_db(); include(PHPWG_ROOT_PATH.'include/user.inc.php'); |