diff options
author | k-paulius <k.dash.paulius@gmail.com> | 2015-07-13 23:21:33 -0500 |
---|---|---|
committer | k-paulius <k.dash.paulius@gmail.com> | 2015-07-13 23:21:33 -0500 |
commit | 3ae988896566a44710767d56cf60765e37350400 (patch) | |
tree | 29148420bb8c50d881fc09122b48c11fe56f836d /config/vnstat2 | |
parent | 1d8944e08c21254c9e81b46c1edc64e9fde7da8e (diff) | |
download | pfsense-packages-3ae988896566a44710767d56cf60765e37350400.tar.gz pfsense-packages-3ae988896566a44710767d56cf60765e37350400.tar.bz2 pfsense-packages-3ae988896566a44710767d56cf60765e37350400.zip |
Declare $config as global variable. Fixes #4834.
Diffstat (limited to 'config/vnstat2')
-rw-r--r-- | config/vnstat2/vnstat2.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/vnstat2/vnstat2.inc b/config/vnstat2/vnstat2.inc index afbf270a..ca8d869d 100644 --- a/config/vnstat2/vnstat2.inc +++ b/config/vnstat2/vnstat2.inc @@ -183,6 +183,7 @@ function vnstat_create_nic_dbs() { function vnstat_install_config() { $vnstat_db_prefix = "/conf/vnstat"; + global $config; conf_mount_rw(); // Create vnstat database dir where it also will work for nanobsd if (is_dir("/usr/local/pkg/vnstat2/vnstat")) { |