aboutsummaryrefslogtreecommitdiffstats
path: root/include/widgets.php
diff options
context:
space:
mode:
authorThomas Willingham <beardyunixer@beardyunixer.com>2014-12-04 21:52:22 +0000
committerThomas Willingham <beardyunixer@beardyunixer.com>2014-12-04 21:52:22 +0000
commitf1367cb9f9b86379fe5a80c69691414483e58bad (patch)
tree9ce3839053b5239fbfd49c2e66e2375e824a17e4 /include/widgets.php
parent6df5c5a8e1d254a8bd6b45eb45d477fd698f5a68 (diff)
downloadvolse-hubzilla-f1367cb9f9b86379fe5a80c69691414483e58bad.tar.gz
volse-hubzilla-f1367cb9f9b86379fe5a80c69691414483e58bad.tar.bz2
volse-hubzilla-f1367cb9f9b86379fe5a80c69691414483e58bad.zip
Missing include if photo album widget called from not-the-photos page.
Diffstat (limited to 'include/widgets.php')
-rw-r--r--include/widgets.php3
1 files changed, 2 insertions, 1 deletions
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
+}