mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
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.
This commit is contained in:
@@ -59,6 +59,9 @@ class Album {
|
||||
//edit album name
|
||||
$album_edit = null;
|
||||
|
||||
$ph = photo_factory('');
|
||||
$phototypes = $ph->supportedTypes();
|
||||
|
||||
$photos = array();
|
||||
if($r) {
|
||||
$twist = 'rotright';
|
||||
|
||||
@@ -66,6 +66,10 @@ class Portfolio {
|
||||
//edit album name
|
||||
$album_edit = null;
|
||||
|
||||
|
||||
$ph = photo_factory('');
|
||||
$phototypes = $ph->supportedTypes();
|
||||
|
||||
$photos = array();
|
||||
if($r) {
|
||||
$twist = 'rotright';
|
||||
|
||||
Reference in New Issue
Block a user