Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
0bbe954316
commit
1793513f46
4 changed files with 13 additions and 12 deletions
|
@ -122,15 +122,16 @@ function display_fetchauthor($item)
|
|||
// Check for a repeated message
|
||||
$shared = Item::getShareArray($item);
|
||||
if (!empty($shared) && empty($shared['comment'])) {
|
||||
$profiledata = [];
|
||||
$profiledata['uid'] = -1;
|
||||
$profiledata['id'] = -1;
|
||||
$profiledata['nickname'] = '';
|
||||
$profiledata['name'] = '';
|
||||
$profiledata['picdate'] = '';
|
||||
$profiledata['photo'] = '';
|
||||
$profiledata['url'] = '';
|
||||
$profiledata['network'] = '';
|
||||
$profiledata = [
|
||||
'uid' => -1,
|
||||
'id' => -1,
|
||||
'nickname' => '',
|
||||
'name' => '',
|
||||
'picdate' => '',
|
||||
'photo' => '',
|
||||
'url' => '',
|
||||
'network' => '',
|
||||
];
|
||||
|
||||
if (!empty($shared['author'])) {
|
||||
$profiledata['name'] = $shared['author'];
|
||||
|
|
|
@ -1624,7 +1624,7 @@ function photos_content(App $a)
|
|||
$o .= Renderer::replaceMacros($tpl, [
|
||||
'$title' => DI::l10n()->t('Recent Photos'),
|
||||
'$can_post' => $can_post,
|
||||
'$upload' => [DI::l10n()->t('Upload New Photos'), 'photos/'.$user['nickname'].'/upload'],
|
||||
'$upload' => [DI::l10n()->t('Upload New Photos'), 'photos/' . $user['nickname'] . '/upload'],
|
||||
'$photos' => $photos,
|
||||
'$paginate' => $pager->renderFull($total),
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue