mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
Fix Geshi for PHP7.2+
This will fix "Function create_function() is deprecated".
This commit is contained in:
parent
20077ab2a0
commit
2537c599d3
@ -4695,7 +4695,7 @@ class GeSHi {
|
|||||||
// TODO: a|bb|c => [ac]|bb
|
// TODO: a|bb|c => [ac]|bb
|
||||||
static $callback_2;
|
static $callback_2;
|
||||||
if (!isset($callback_2)) {
|
if (!isset($callback_2)) {
|
||||||
$callback_2 = create_function('$matches', 'return "[" . str_replace("|", "", $matches[1]) . "]";');
|
$callback_2 = function($matches) { return "[" . str_replace("|", "", $matches[1]) . "]"; };
|
||||||
}
|
}
|
||||||
$list = preg_replace_callback('#\(\?\:((?:.\|)+.)\)#', $callback_2, $list);
|
$list = preg_replace_callback('#\(\?\:((?:.\|)+.)\)#', $callback_2, $list);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user