From 48dc47d1be95d5e5c44d0482aca9f9ce782b56c5 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 16 Dec 2014 13:26:06 +0100 Subject: [PATCH] self cannot be used inside a closure (at least not in PHP 5.3) --- .../lib/system/event/listener/PreParserAtUserListener.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/event/listener/PreParserAtUserListener.class.php b/wcfsetup/install/files/lib/system/event/listener/PreParserAtUserListener.class.php index eed04584dc..ae795a1232 100644 --- a/wcfsetup/install/files/lib/system/event/listener/PreParserAtUserListener.class.php +++ b/wcfsetup/install/files/lib/system/event/listener/PreParserAtUserListener.class.php @@ -111,7 +111,7 @@ class PreParserAtUserListener implements IParameterizedEventListener { // containing only the part before the first space if (isset($matches[2])) $usernames[] = $matches[2]; - $usernames = array_map(array('self', 'getUsername'), $usernames); + $usernames = array_map(array('\wcf\system\event\listener\PreParserAtUserListener', 'getUsername'), $usernames); foreach ($usernames as $username) { if (!isset($users[$username])) continue; -- 2.20.1