aboutsummaryrefslogtreecommitdiffstats
path: root/mod/community.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-11 19:27:58 -0700
committerFriendika <info@friendika.com>2011-10-11 19:27:58 -0700
commit2206d894b3fec7064b91e0420bcc2b16e9e7009b (patch)
treedff69c246dbba923a76e68404e2c012acbb29c07 /mod/community.php
parent557a7d0cec31a36d12898429c479c71671833dfd (diff)
downloadvolse-hubzilla-2206d894b3fec7064b91e0420bcc2b16e9e7009b.tar.gz
volse-hubzilla-2206d894b3fec7064b91e0420bcc2b16e9e7009b.tar.bz2
volse-hubzilla-2206d894b3fec7064b91e0420bcc2b16e9e7009b.zip
add contact_widgets and provide widgets on appropriate pages, fix the saved search widget
fix directory page on testbubble, don't use system theme for community, directory, and search if the viewer is logged in.
Diffstat (limited to 'mod/community.php')
-rw-r--r--mod/community.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/mod/community.php b/mod/community.php
index cb255029f..34c992bad 100644
--- a/mod/community.php
+++ b/mod/community.php
@@ -1,5 +1,12 @@
<?php
+function community_init(&$a) {
+ if(! local_user())
+ unset($_SESSION['theme']);
+
+
+}
+
function community_content(&$a, $update = 0) {
@@ -19,9 +26,6 @@ function community_content(&$a, $update = 0) {
require_once('include/security.php');
require_once('include/conversation.php');
- if(x($_SESSION,'theme'))
- unset($_SESSION['theme']);
-
$o .= '<h3>' . t('Community') . '</h3>';
if(! $update) {