aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Album.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-11-14 18:40:15 +0000
committerMario <mario@mariovavti.com>2024-11-14 18:40:15 +0000
commit951800eca6045f6e0dc1e9a12c225c8e55b044e9 (patch)
tree2eaa48c246725a85b4277db07b72831f088cf5e9 /Zotlabs/Widget/Album.php
parentd446f171c50b3d74b2f9865ccf17b535aaa38fe1 (diff)
downloadvolse-hubzilla-951800eca6045f6e0dc1e9a12c225c8e55b044e9.tar.gz
volse-hubzilla-951800eca6045f6e0dc1e9a12c225c8e55b044e9.tar.bz2
volse-hubzilla-951800eca6045f6e0dc1e9a12c225c8e55b044e9.zip
Several issues discovered by PHPStan
Diffstat (limited to 'Zotlabs/Widget/Album.php')
-rw-r--r--Zotlabs/Widget/Album.php8
1 files changed, 3 insertions, 5 deletions
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;
}
}