mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 04:21:17 -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
|
||||
static $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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user