1
1
Fork 0

Remove unused template variable in mod/photos

This commit is contained in:
Hypolite Petovan 2020-02-22 20:30:28 -05:00
parent 18a5cc6916
commit b2bfec3381

View file

@ -1372,7 +1372,6 @@ function photos_content(App $a)
$likebuttons = ''; $likebuttons = '';
$comments = ''; $comments = '';
$paginate = ''; $paginate = '';
$responses = '';
if (!empty($link_item['id']) && !empty($link_item['uri'])) { if (!empty($link_item['id']) && !empty($link_item['uri'])) {
$cmnt_tpl = Renderer::getMarkupTemplate('comment_item.tpl'); $cmnt_tpl = Renderer::getMarkupTemplate('comment_item.tpl');
@ -1460,7 +1459,6 @@ function photos_content(App $a)
foreach ($items as $item) { foreach ($items as $item) {
$comment = ''; $comment = '';
$template = $tpl; $template = $tpl;
$sparkle = '';
$activity = DI::activity(); $activity = DI::activity();
@ -1523,8 +1521,6 @@ function photos_content(App $a)
} }
} }
$responses = get_responses($conv_responses, ['like', 'dislike'], $link_item);
$paginate = $pager->renderFull($total); $paginate = $pager->renderFull($total);
} }
@ -1544,7 +1540,6 @@ function photos_content(App $a)
'$likebuttons' => $likebuttons, '$likebuttons' => $likebuttons,
'$like' => $like, '$like' => $like,
'$dislike' => $dislike, '$dislike' => $dislike,
'responses' => $responses,
'$comments' => $comments, '$comments' => $comments,
'$paginate' => $paginate, '$paginate' => $paginate,
]); ]);