Missing include if photo album widget called from not-the-photos page.

This commit is contained in:
Thomas Willingham 2014-12-04 21:52:22 +00:00
parent 6df5c5a8e1
commit f1367cb9f9

View File

@ -606,6 +606,7 @@ function widget_photo_albums($arr) {
$channelx = channelx_by_n($a->profile['profile_uid']);
if((! $channelx) || (! perm_is_allowed($a->profile['profile_uid'],get_observer_hash(),'view_photos')))
return '';
require_once('include/photos.php');
return photos_album_widget($channelx,$a->get_observer());
}
@ -918,4 +919,4 @@ function widget_random_block($arr) {
}
return $o;
}
}