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' => [
|
'parse' => [
|
||||||
'type' => 'function',
|
'type' => 'function',
|
||||||
'data' => function($row) {
|
'data' => function($row) {
|
||||||
if (!empty($row['first_name']))
|
if (!empty($row['id_user']))
|
||||||
return $row['first_name'] . ' ' . $row['surname'];
|
return sprintf('<a href="%s/edituser/?id=%d">%s</a>', BASEURL, $row['id_user'],
|
||||||
|
$row['first_name'] . ' ' . $row['surname']);
|
||||||
else
|
else
|
||||||
return 'n/a';
|
return 'n/a';
|
||||||
},
|
},
|
||||||
|
@ -56,8 +56,9 @@ class ManageTags extends HTMLController
|
|||||||
'parse' => [
|
'parse' => [
|
||||||
'type' => 'function',
|
'type' => 'function',
|
||||||
'data' => function($row) {
|
'data' => function($row) {
|
||||||
if (!empty($row['first_name']))
|
if (!empty($row['id_user']))
|
||||||
return $row['first_name'] . ' ' . $row['surname'];
|
return sprintf('<a href="%s/edituser/?id=%d">%s</a>', BASEURL, $row['id_user'],
|
||||||
|
$row['first_name'] . ' ' . $row['surname']);
|
||||||
else
|
else
|
||||||
return 'n/a';
|
return 'n/a';
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user