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.
This commit is contained in:
Friendika
2011-10-11 19:27:58 -07:00
parent 557a7d0cec
commit 2206d894b3
9 changed files with 90 additions and 44 deletions
+7 -3
View File
@@ -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) {