diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-03-25 20:13:11 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-03-25 20:13:11 -0400 |
commit | f6caa0b6863df8111d34273f2d4b0d3b9d86f9e3 (patch) | |
tree | 798386e091617ea0159248f2a092de7d4cfef8ea | |
parent | 6f8ed307f40427e1e98c1be7cb7230214e4dccea (diff) | |
download | pfsense-packages-f6caa0b6863df8111d34273f2d4b0d3b9d86f9e3.tar.gz pfsense-packages-f6caa0b6863df8111d34273f2d4b0d3b9d86f9e3.tar.bz2 pfsense-packages-f6caa0b6863df8111d34273f2d4b0d3b9d86f9e3.zip |
Need to declare $g and $config vars as globals.
-rw-r--r-- | config/suricata/suricata_check_cron_misc.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/suricata/suricata_check_cron_misc.inc b/config/suricata/suricata_check_cron_misc.inc index 25e8bb8a..b9ba3fb7 100644 --- a/config/suricata/suricata_check_cron_misc.inc +++ b/config/suricata/suricata_check_cron_misc.inc @@ -30,6 +30,8 @@ require_once("/usr/local/pkg/suricata/suricata.inc"); +global $g, $config; + function suricata_check_dir_size_limit($suricataloglimitsize) { /******************************************************** @@ -41,6 +43,8 @@ function suricata_check_dir_size_limit($suricataloglimitsize) { * On Entry: $surictaaloglimitsize = dir size limit * * in megabytes * ********************************************************/ + + global $config; // Convert Log Limit Size setting from MB to KB $suricataloglimitsizeKB = round($suricataloglimitsize * 1024); |