From f01010badde23391094dc5583cea6a54bf4bbf89 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Wed, 31 Oct 2012 08:44:32 +0545 Subject: 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 --- config/bandwidthd/bandwidthd.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/bandwidthd/bandwidthd.inc') 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 = ""; -- cgit v1.2.3