summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizard.php
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-01-19 20:33:41 +0100
committersmos <seth.mos@dds.nl>2012-01-19 20:33:41 +0100
commitcfbfd9412b70bda8c34127b8b7dfdceff4872390 (patch)
tree465ee07c80898171a4cc41a6ac82d9133012797d /usr/local/www/wizard.php
parent80c88a686d0e56b2f2ad774da05debb1a2afba47 (diff)
downloadpfsense-cfbfd9412b70bda8c34127b8b7dfdceff4872390.zip
pfsense-cfbfd9412b70bda8c34127b8b7dfdceff4872390.tar.gz
The function split() is replaced by the function explode(). Starting with PHP 5.3 this is deprecated and with version 6 gone.
Replacing it surpresses all the warnings
Diffstat (limited to 'usr/local/www/wizard.php')
-rwxr-xr-xusr/local/www/wizard.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/wizard.php b/usr/local/www/wizard.php
index a136f7b..a40bb38 100755
--- a/usr/local/www/wizard.php
+++ b/usr/local/www/wizard.php
@@ -125,7 +125,7 @@ if ($_POST && !$input_errors) {
function update_config_field($field, $updatetext, $unset, $arraynum, $field_type) {
global $config;
- $field_split = split("->",$field);
+ $field_split = explode("->",$field);
foreach ($field_split as $f)
$field_conv .= "['" . $f . "']";
if($field_conv == "")
@@ -359,7 +359,7 @@ function showchange() {
if($field['bindstofield'] <> "") {
$arraynum = "";
$field_conv = "";
- $field_split = split("->", $field['bindstofield']);
+ $field_split = explode("->", $field['bindstofield']);
// arraynum is used in cases where there is an array of the same field
// name such as dnsserver (2 of them)
if($field['arraynum'] <> "")
@@ -855,7 +855,7 @@ if($pkg['step'][$stepid]['disableallfieldsbydefault'] <> "") {
foreach ($field['options']['option'] as $opt) {
if($opt['enablefields'] <> "") {
echo "\t\tcase " . $idcounter . ":\n";
- $enablefields_split = split(",", $opt['enablefields']);
+ $enablefields_split = explode(",", $opt['enablefields']);
foreach ($enablefields_split as $efs) {
$fieldname = ereg_replace(" ", "", $efs);
$fieldname = strtolower($fieldname);
OpenPOWER on IntegriCloud