diff options
author | Bill Marquette <billm@pfsense.org> | 2005-05-16 23:19:50 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-05-16 23:19:50 +0000 |
commit | 1008ad704708d905b46a57e4ee2af7c01faf6e6b (patch) | |
tree | 49aaf2865ffa38565620531150f3aba35dd5c8cd /etc/inc | |
parent | 23a97395da7f65e80759dbb79396903b33276517 (diff) | |
download | pfsense-1008ad704708d905b46a57e4ee2af7c01faf6e6b.zip pfsense-1008ad704708d905b46a57e4ee2af7c01faf6e6b.tar.gz |
need global $g
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/config.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 01c52f1..9650931 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -134,7 +134,7 @@ EOD; if(!$g['booting']) parse_config(); function parse_config() { - global $config; + global $config, $g; config_lock(); if(file_exists($g['tmp_path'] . '/config.cache')) { $config = unserialize(file_get_contents($g['tmp_path'] . '/config.cache')); @@ -147,7 +147,7 @@ function parse_config() { } function generate_config_cache() { - global $config; + global $config, $g; $configcache = fopen($g['tmp_path'] . '/config.cache', "w"); fwrite($configcache, serialize($config)); fclose($configcache); |