self cannot be used inside a closure (at least not in PHP 5.3)
authorAlexander Ebert <ebert@woltlab.com>
Tue, 16 Dec 2014 12:26:06 +0000 (13:26 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 16 Dec 2014 12:26:06 +0000 (13:26 +0100)
wcfsetup/install/files/lib/system/event/listener/PreParserAtUserListener.class.php

index eed04584dc5276eea3ac88753af9fe0f29331103..ae795a12329290fc2a129a79f88fe4cf0d683e35 100644 (file)
@@ -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;