From f1367cb9f9b86379fe5a80c69691414483e58bad Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Thu, 4 Dec 2014 21:52:22 +0000 Subject: Missing include if photo album widget called from not-the-photos page. --- include/widgets.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/widgets.php') diff --git a/include/widgets.php b/include/widgets.php index f7b8a20bd..e686fd5bd 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -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; -} \ No newline at end of file +} -- cgit v1.2.3