Permalink
Browse files

fix in rendering username

but the userlink() function from core does still not return the realname
  • Loading branch information...
runout-at committed Jun 5, 2018
1 parent ba3bbb2 commit 6321dc1c6949d762a9c230b84f44621285bea38f
Showing with 9 additions and 6 deletions.
  1. +9 −6 syntax/todo.php
@@ -319,15 +319,18 @@ protected function createTodoItem($renderer, $id, $data) {
// Username of first todouser in list
if($todouser && $data['username'] != 'none') {
switch ($data['username']) {
case "user": break;
case "user":
break;
case "real":
if(!($todouser = userlink($todouser, true))) { //only if the user exists
$todouser = $data['todousers'][0];
}
$todouser = userlink($todouser, true);
break;
case "none": unset($todouser); break;
case "none":
unset($todouser);
break;
}
if($todouser) {
$return .= '<span class="todouser">[' . hsc($todouser) . ']</span>';
}
$return .= '<span class="todouser">[' . hsc($todouser) . ']</span>';
}
// start/due date

0 comments on commit 6321dc1

Please sign in to comment.