diff --git a/src/Pluf/Date.php b/src/Pluf/Date.php index 1ac7059..3381361 100644 --- a/src/Pluf/Date.php +++ b/src/Pluf/Date.php @@ -148,8 +148,8 @@ function Pluf_Date_Easy($date, $ref=null, $blocks=2, $notime='now', $show=true) } $ref = str_replace(array(' ', ':'), '-', $ref); $date = str_replace(array(' ', ':'), '-', $date); - $refs = split('-', $ref); - $dates = split('-', $date); + $refs = explode('-', $ref); + $dates = explode('-', $date); // Modulo on the month is dynamically calculated after $modulos = array(365, 12, 31, 24, 60, 60); // day in month diff --git a/src/Pluf/HTTP/URL.php b/src/Pluf/HTTP/URL.php index b597f74..6c6ae27 100644 --- a/src/Pluf/HTTP/URL.php +++ b/src/Pluf/HTTP/URL.php @@ -105,7 +105,7 @@ function Pluf_HTTP_URL_reverse($view, $params=array()) $model = ''; $method = ''; if (false !== strpos($view, '::')) { - list($model, $method) = split('::', $view); + list($model, $method) = explode('::', $view); } $vdef = array($model, $method, $view); $regbase = array('', array()); diff --git a/src/Pluf/User.php b/src/Pluf/User.php index 86301f8..91b29c7 100644 --- a/src/Pluf/User.php +++ b/src/Pluf/User.php @@ -240,7 +240,7 @@ class Pluf_User extends Pluf_Model if ($this->password == '') { return false; } - list($algo, $salt, $hash) = split(':', $this->password); + list($algo, $salt, $hash) = explode(':', $this->password); if ($hash == $algo($salt.$password)) { return true; } else { diff --git a/src/Pluf/Utils.php b/src/Pluf/Utils.php index 90d6f58..60d3425 100644 --- a/src/Pluf/Utils.php +++ b/src/Pluf/Utils.php @@ -125,7 +125,7 @@ class Pluf_Utils static function isValidEmail($email) { $email = trim($email); - $n = split(' ', $email); + $n = explode(' ', $email); if (count($n) > 1) { return false; }