forked from Public/pics
Manage{Assets,Tags}: link user names to edituser
This commit is contained in:
parent
e916489d00
commit
0b8c614191
@ -71,8 +71,9 @@ class ManageAssets extends HTMLController
|
||||
'parse' => [
|
||||
'type' => 'function',
|
||||
'data' => function($row) {
|
||||
if (!empty($row['first_name']))
|
||||
return $row['first_name'] . ' ' . $row['surname'];
|
||||
if (!empty($row['id_user']))
|
||||
return sprintf('<a href="%s/edituser/?id=%d">%s</a>', BASEURL, $row['id_user'],
|
||||
$row['first_name'] . ' ' . $row['surname']);
|
||||
else
|
||||
return 'n/a';
|
||||
},
|
||||
|
@ -56,8 +56,9 @@ class ManageTags extends HTMLController
|
||||
'parse' => [
|
||||
'type' => 'function',
|
||||
'data' => function($row) {
|
||||
if (!empty($row['first_name']))
|
||||
return $row['first_name'] . ' ' . $row['surname'];
|
||||
if (!empty($row['id_user']))
|
||||
return sprintf('<a href="%s/edituser/?id=%d">%s</a>', BASEURL, $row['id_user'],
|
||||
$row['first_name'] . ' ' . $row['surname']);
|
||||
else
|
||||
return 'n/a';
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user