Skip to content
Snippets Groups Projects
Commit 6c37dbae authored by Angie Byron's avatar Angie Byron
Browse files

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

parent 14053d36
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment