]> git.mxchange.org Git - friendica.git/blobdiff - mod/community.php
add remove_user hook (it looks like dreamhost changed all my file permissions, this...
[friendica.git] / mod / community.php
old mode 100644 (file)
new mode 100755 (executable)
index cb25502..34c992b
@@ -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) {