Index: trunk/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -197,6 +197,12 @@ |
198 | 198 | |
199 | 199 | // default |
200 | 200 | $gender = User::getDefaultOption( 'gender' ); |
| 201 | + |
| 202 | + // allow prefix. |
| 203 | + $title = Title::newFromText( $user ); |
| 204 | + |
| 205 | + if ($title->getNamespace == NS_USER) |
| 206 | + $user = $title->getText(); |
201 | 207 | |
202 | 208 | // check parameter, or use $wgUser if in interface message |
203 | 209 | $user = User::newFromName( $user ); |