diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2025-06-07 23:09:46 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2025-06-07 23:09:46 +0200 |
commit | 13755060d74ddbf0a07f0d08f248f12c4fa72d32 (patch) | |
tree | 8e021897b6f4647a846138a6d0744acc445f0657 | |
parent | 5db855abfeab40d736e94c8b9a52ddf06a7c1137 (diff) | |
download | volse-hubzilla-13755060d74ddbf0a07f0d08f248f12c4fa72d32.tar.gz volse-hubzilla-13755060d74ddbf0a07f0d08f248f12c4fa72d32.tar.bz2 volse-hubzilla-13755060d74ddbf0a07f0d08f248f12c4fa72d32.zip |
Fix undefined variable in album widgets
The Album and Portfolio widgets would reference the undefined
$phototypes array to determine the file extensions of the image sources.
It appears that the extension is not really necessary, but for
completeness I fixed the issue so that the appropriate extension will be
used by for the image source attribute.
-rw-r--r-- | Zotlabs/Widget/Album.php | 3 | ||||
-rw-r--r-- | Zotlabs/Widget/Portfolio.php | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Zotlabs/Widget/Album.php b/Zotlabs/Widget/Album.php index f1fa69182..667952360 100644 --- a/Zotlabs/Widget/Album.php +++ b/Zotlabs/Widget/Album.php @@ -59,6 +59,9 @@ class Album { //edit album name $album_edit = null; + $ph = photo_factory(''); + $phototypes = $ph->supportedTypes(); + $photos = array(); if($r) { $twist = 'rotright'; diff --git a/Zotlabs/Widget/Portfolio.php b/Zotlabs/Widget/Portfolio.php index bde1c7d6a..1c9dc162a 100644 --- a/Zotlabs/Widget/Portfolio.php +++ b/Zotlabs/Widget/Portfolio.php @@ -66,6 +66,10 @@ class Portfolio { //edit album name $album_edit = null; + + $ph = photo_factory(''); + $phototypes = $ph->supportedTypes(); + $photos = array(); if($r) { $twist = 'rotright'; |