aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-27 00:36:59 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-27 00:36:59 +0000
commit5d6d475f8dc84456c35975073e82e8af261c4bf3 (patch)
tree850ecce80a481fac806ce78bb71fa45eb5e305c5 /mod
parent03d72f274011422865fab69b4a6210c77a97eabe (diff)
downloadelgg-5d6d475f8dc84456c35975073e82e8af261c4bf3.tar.gz
elgg-5d6d475f8dc84456c35975073e82e8af261c4bf3.tar.bz2
Fixes #2969 turned off group blog archives
git-svn-id: http://code.elgg.org/elgg/trunk@8864 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/blog/views/default/blog/sidebar.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/blog/views/default/blog/sidebar.php b/mod/blog/views/default/blog/sidebar.php
index b7dfaa2e1..97a23c17e 100644
--- a/mod/blog/views/default/blog/sidebar.php
+++ b/mod/blog/views/default/blog/sidebar.php
@@ -17,7 +17,10 @@ if ($vars['page'] == 'all') {
));
}
-echo elgg_view('blog/sidebar/archives', $vars);
+// only users can have archives at present
+if (elgg_instanceof(elgg_get_page_owner_entity(), 'user')) {
+ echo elgg_view('blog/sidebar/archives', $vars);
+}
if ($vars['page'] != 'friends') {
echo elgg_view('page/elements/tagcloud_block', array(