]> git.mxchange.org Git - friendica.git/blobdiff - mod/community.php
implement max daily registrations
[friendica.git] / mod / community.php
index cb255029f0d47e84d64ae9e825c731cdf1982362..34c992bada16ec361b485eac14d55b0568943199 100644 (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) {