From 951800eca6045f6e0dc1e9a12c225c8e55b044e9 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 14 Nov 2024 18:40:15 +0000 Subject: Several issues discovered by PHPStan --- Zotlabs/Widget/Album.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Zotlabs/Widget/Album.php') diff --git a/Zotlabs/Widget/Album.php b/Zotlabs/Widget/Album.php index 003f6f49d..f1fa69182 100644 --- a/Zotlabs/Widget/Album.php +++ b/Zotlabs/Widget/Album.php @@ -94,7 +94,7 @@ class Album { $tpl = get_markup_template('photo_album.tpl'); - $o .= replace_macros($tpl, array( + return replace_macros($tpl, array( '$photos' => $photos, '$album' => (($title) ? $title : $album), '$album_id' => rand(), @@ -102,11 +102,9 @@ class Album { '$can_post' => false, '$upload' => array(t('Upload'), z_root() . '/photos/' . \App::$profile['channel_address'] . '/upload/' . bin2hex($album)), '$order' => false, - '$upload_form' => $upload_form, - '$usage' => $usage_message + '$upload_form' => '', // $upload_form, + '$usage' => '', // $usage_message )); - - return $o; } } -- cgit v1.2.3