diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-02-18 11:32:56 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-02-18 11:32:56 -0200 |
commit | f1e819c4e3c002b61e8158ffe4c6d28ec6e4feb0 (patch) | |
tree | 7e60d3391a44c0b597d23f554b58d7252bf5f382 /www/inc/funkce.inc.php | |
parent | 43635311c43229b70818ad78b9b1786640e4f440 (diff) | |
download | original-f1e819c4e3c002b61e8158ffe4c6d28ec6e4feb0.tar.gz original-f1e819c4e3c002b61e8158ffe4c6d28ec6e4feb0.tar.bz2 |
Avoiding deprecation notices
Diffstat (limited to 'www/inc/funkce.inc.php')
-rw-r--r-- | www/inc/funkce.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/inc/funkce.inc.php b/www/inc/funkce.inc.php index 27e1dbd..368ea8e 100644 --- a/www/inc/funkce.inc.php +++ b/www/inc/funkce.inc.php @@ -39,7 +39,7 @@ function infoParse ($infofile) { $info_array = file($infofile); foreach ($info_array as $line) { - list($key,$value) = split("\|",$line); + list($key,$value) = preg_split("/\|/",$line); $result[$key]=$value; } return $result; @@ -57,7 +57,7 @@ function readInfo ($infofile, $file) { if (ereg("([0-9]{1,2})\.([0-9]{1,2})\.([0-9]{4})", $info_array["date"])) { // remain compatible - DD.MM.YYYY - list($day,$month,$year) = split("\.", $info_array["date"]); + list($day,$month,$year) = preg_split("/\./", $info_array["date"]); $year = rtrim($year); $month = rtrim($month); $day = rtrim($day); |