trimming username before to be formated.

This commit is contained in:
ralph
2013-04-11 15:13:14 -04:00
parent 6d43321283
commit 96df9f3c4d

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;