From 3b0feba15f6d87a8eb54b10a1e972a0586951022 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 19 Dec 2025 15:59:46 -0500 Subject: [PATCH] Add db config entries to zm_configvals --- web/includes/config.php.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/includes/config.php.in b/web/includes/config.php.in index 3426f9cd1..faaa47df3 100644 --- a/web/includes/config.php.in +++ b/web/includes/config.php.in @@ -28,6 +28,7 @@ define( 'ZM_VERSION', '@VERSION@' ); // Version define( 'ZM_DIR_TEMP', '@ZM_TMPDIR@' ); define( 'ZM_DIR_CACHE', '@ZM_CACHEDIR@' ); global $zm_configvals; +global $zm_config; $configFile = ZM_CONFIG; $localConfigFile = basename($configFile); @@ -230,10 +231,9 @@ $GLOBALS['defaultUser'] = array( function loadConfig( $defineConsts=true ) { global $zm_config; + global $zm_configvals; global $dbConn; - $config = array(); - $result = $dbConn->query('SELECT Name,Value,Type,Private FROM Config'); if ( !$result ) echo mysql_error(); @@ -248,6 +248,7 @@ function loadConfig( $defineConsts=true ) { $zm_config[$row['Name']]['Value'] = constant($row['Name']); } } + if (!isset($zm_configvals[$row['Name']])) $zm_configvals[$row['Name']] = $row['Value']; } return $zm_config; } # end function loadConfig