Commit 6c37dbae authored by webchick's avatar webchick

#651510 by boombatower: Fixed token.inc - split() is deprecated in PHP 5.3.

parent 14053d36
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment