diff options
author | Phil Davis <phil.davis@world.inf.org> | 2012-10-31 08:44:32 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@world.inf.org> | 2012-10-31 08:44:32 +0545 |
commit | f01010badde23391094dc5583cea6a54bf4bbf89 (patch) | |
tree | ef3555bc929ec7ede20a73444e8e715e203cf9f3 /config | |
parent | d9fb956f9bc179af776b47fe2d81402990fd182a (diff) | |
download | pfsense-packages-f01010badde23391094dc5583cea6a54bf4bbf89.tar.gz pfsense-packages-f01010badde23391094dc5583cea6a54bf4bbf89.tar.bz2 pfsense-packages-f01010badde23391094dc5583cea6a54bf4bbf89.zip |
bandwidthd - replace deprecated split with explode
The split function is deprecated in PHP 5.3. For this simple use, the explode function does the same thing.
http://forum.pfsense.org/index.php/topic,55187.0.html
Diffstat (limited to 'config')
-rw-r--r-- | config/bandwidthd/bandwidthd.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/bandwidthd/bandwidthd.inc b/config/bandwidthd/bandwidthd.inc index 69724a96..34532c18 100644 --- a/config/bandwidthd/bandwidthd.inc +++ b/config/bandwidthd/bandwidthd.inc @@ -97,7 +97,7 @@ function bandwidthd_install_config() { log_error("You should specify an interface for bandwidthd to listen on. Exiting."); } - $subnets_custom = split(';',str_replace(' ','',$config['installedpackages']['bandwidthd']['config'][0]['subnets_custom'])); + $subnets_custom = explode(';',str_replace(' ','',$config['installedpackages']['bandwidthd']['config'][0]['subnets_custom'])); /* initialize to "" */ $subnets = ""; |