diff options
author | smos <seth.mos@dds.nl> | 2012-01-19 20:33:41 +0100 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-01-19 20:33:41 +0100 |
commit | cfbfd9412b70bda8c34127b8b7dfdceff4872390 (patch) | |
tree | 465ee07c80898171a4cc41a6ac82d9133012797d /usr/local/www/widgets | |
parent | 80c88a686d0e56b2f2ad774da05debb1a2afba47 (diff) | |
download | pfsense-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/widgets')
-rw-r--r-- | usr/local/www/widgets/widgets/picture.widget.php | 2 | ||||
-rw-r--r-- | usr/local/www/widgets/widgets/rss.widget.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/widgets/widgets/picture.widget.php b/usr/local/www/widgets/widgets/picture.widget.php index 90bf288..0c47875 100644 --- a/usr/local/www/widgets/widgets/picture.widget.php +++ b/usr/local/www/widgets/widgets/picture.widget.php @@ -33,7 +33,7 @@ require_once("pfsense-utils.inc"); require_once("functions.inc"); if($_GET['getpic']=="true") { - $pic_type_s = split("\.", $config['widgets']['picturewidget_filename']); + $pic_type_s = explode("\.", $config['widgets']['picturewidget_filename']); $pic_type = $pic_type_s[1]; if($config['widgets']['picturewidget']) $data = base64_decode($config['widgets']['picturewidget']); diff --git a/usr/local/www/widgets/widgets/rss.widget.php b/usr/local/www/widgets/widgets/rss.widget.php index 0843684..d7bbcbd 100644 --- a/usr/local/www/widgets/widgets/rss.widget.php +++ b/usr/local/www/widgets/widgets/rss.widget.php @@ -43,7 +43,7 @@ if($_POST['rssfeed']) { // Use saved feed and max items if($config['widgets']['rssfeed']) - $rss_feed_s = split(",", $config['widgets']['rssfeed']); + $rss_feed_s = explode(",", $config['widgets']['rssfeed']); if($config['widgets']['rssmaxitems']) $max_items = $config['widgets']['rssmaxitems']; |