From 6c37dbae290ac9f9d83770d399d1286bdfd01f99 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 5 Dec 2009 03:49:17 +0000 Subject: #651510 by boombatower: Fixed token.inc - split() is deprecated in PHP 5.3. --- includes/token.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/token.inc b/includes/token.inc index 47e7201a2..1682b4fde 100644 --- a/includes/token.inc +++ b/includes/token.inc @@ -191,7 +191,7 @@ function token_generate($type, array $tokens, array $data = array(), array $opti function token_find_with_prefix(array $tokens, $prefix, $delimiter = ':') { $results = array(); foreach ($tokens as $token => $raw) { - $parts = split($delimiter, $token, 2); + $parts = explode($delimiter, $token, 2); if (count($parts) == 2 && $parts[0] == $prefix) { $results[$parts[1]] = $raw; } -- cgit v1.2.3