Merge pull request #1544 from ralpheav/master

Trimming username before to be formated.
This commit is contained in:
julceslauhub
2013-04-11 13:06:44 -07:00

View File

@@ -326,7 +326,7 @@ class Configurations // extends Configuration
if (isset($this->UserConfig['format'])) {
$name = explode(' ',$fullname);
$aux = '';
$aux = str_replace('@userName', $username, $this->UserConfig['format']);
$aux = str_replace('@userName', trim($username), $this->UserConfig['format']);
$aux = str_replace('@firstName', isset($name[0])?$name[0]:'', $aux);
$aux = str_replace('@lastName', isset($name[1])?$name[1]:'', $aux);
return $aux;