rename process_configfile to remove namesspace colision
parent
fb392b2765
commit
87f5204c46
|
@ -121,7 +121,7 @@ Configure::write('ZM_VERSION', '@VERSION@');
|
|||
Configure::write('ZM_API_VERSION', '@API_VERSION@');
|
||||
|
||||
# Process name, value pairs from the main config file first
|
||||
$configvals = process_configfile(Configure::read('ZM_CONFIG'));
|
||||
$configvals = api_process_configfile(Configure::read('ZM_CONFIG'));
|
||||
|
||||
# Search for user created config files. If one or more are found then
|
||||
# update our config value array with those values
|
||||
|
@ -129,7 +129,7 @@ $configSubFolder = Configure::read('ZM_CONFIG_SUBDIR');
|
|||
if ( is_dir($configSubFolder) ) {
|
||||
if ( is_readable($configSubFolder) ) {
|
||||
foreach ( glob("$configSubFolder/*.conf") as $filename ) {
|
||||
$configvals = array_replace($configvals, process_configfile($filename) );
|
||||
$configvals = array_replace($configvals, api_process_configfile($filename) );
|
||||
}
|
||||
} else {
|
||||
error_log( "WARNING: ZoneMinder configuration subfolder found but is not readable. Check folder permissions on $configSubFolder." );
|
||||
|
@ -164,7 +164,7 @@ if ( ! defined('ZM_SERVER_ID') ) {
|
|||
}
|
||||
}
|
||||
|
||||
function process_configfile($configFile) {
|
||||
function api_process_configfile($configFile) {
|
||||
if ( is_readable( $configFile ) ) {
|
||||
$configvals = array();
|
||||
|
||||
|
|
Loading…
Reference in New Issue