function html()
{
- return $this->name ?: $this->login;
+ $name = htmlspecialchars($this->login);
+ if ($this->name and $this->name != $name) {
+ $name = "{$this->name}<small> @$name</small>";
+ }
+ return $name;
}
function email()
$author = $Issue->author ? new User('profile/'.$Issue->author, FALSE) : NULL;
printf('<p><em>%s</em>%s <small class=date>%s</small></p>'."\n",
'Geplaatst',
- $author ? " door <strong>{$author->name}</strong>" : '',
+ $author ? " door <strong>{$author->html}</strong>" : '',
showdate(preg_split('/\D/', $Issue->created))
);
if ($Issue->assign) {
print ">\n";
foreach ($users as $user) {
- $name = $user->name ?: $user->login;
+ $name = $user->html;
if ($GLOBALS['User'] and $GLOBALS['User']->admin('user')) {
$link = '/login/edit/'.$user->login;
$name = sprintf('<a href="%s">%s</a>', $link, $name);