The username has to be processed by recursiveTagParse to be able to use the extension...
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 19 Oct 2013 21:03:09 +0000 (21:03 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 19 Oct 2013 21:03:09 +0000 (21:03 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrreport/trunk@1742 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport.body.php

index 887153351a941b266589f0e60524dc9c7174a22c..3711ede2ce2494ff48c4ab90a0dc03a136684c44 100644 (file)
@@ -763,7 +763,7 @@ class WrReport {
                try {
                        // check user name
                        if (is_null($input)) throw new InvalidArgumentException(wfMessage('wrreport-avatar-nousername')->text());
                try {
                        // check user name
                        if (is_null($input)) throw new InvalidArgumentException(wfMessage('wrreport-avatar-nousername')->text());
-                       $username = $input; // $username = $parser->recursiveTagParse($input, $frame);
+                       $username = $parser->recursiveTagParse($input, $frame);
                        $user = User::newFromName($username);
                        if ($user === false) throw new InvalidArgumentException(wfMessage('wrreport-avatar-invalidusername', $username)->text());
                        if ($user->getId() == 0) throw new InvalidArgumentException(wfMessage('wrreport-avatar-userunknown', $username)->text());
                        $user = User::newFromName($username);
                        if ($user === false) throw new InvalidArgumentException(wfMessage('wrreport-avatar-invalidusername', $username)->text());
                        if ($user->getId() == 0) throw new InvalidArgumentException(wfMessage('wrreport-avatar-userunknown', $username)->text());