Missing include if photo album widget called from not-the-photos page.
This commit is contained in:
parent
6df5c5a8e1
commit
f1367cb9f9
@ -606,6 +606,7 @@ function widget_photo_albums($arr) {
|
|||||||
$channelx = channelx_by_n($a->profile['profile_uid']);
|
$channelx = channelx_by_n($a->profile['profile_uid']);
|
||||||
if((! $channelx) || (! perm_is_allowed($a->profile['profile_uid'],get_observer_hash(),'view_photos')))
|
if((! $channelx) || (! perm_is_allowed($a->profile['profile_uid'],get_observer_hash(),'view_photos')))
|
||||||
return '';
|
return '';
|
||||||
|
require_once('include/photos.php');
|
||||||
return photos_album_widget($channelx,$a->get_observer());
|
return photos_album_widget($channelx,$a->get_observer());
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -918,4 +919,4 @@ function widget_random_block($arr) {
|
|||||||
}
|
}
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user