From f37f5aff742e1886ddb9c76e519e33541016b2a4 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sun, 9 Jun 2019 14:35:24 +0200 Subject: [PATCH] Re-add fix from f1bec45d71. Signed-off-by: Thomas Hochstein --- serendipity_event_geshi/geshi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serendipity_event_geshi/geshi.php b/serendipity_event_geshi/geshi.php index 4effa488..4f68968d 100644 --- a/serendipity_event_geshi/geshi.php +++ b/serendipity_event_geshi/geshi.php @@ -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); }