]> git.mxchange.org Git - friendica.git/blobdiff - mod/community.php
Better implementation of "hidewall"
[friendica.git] / mod / community.php
index c64c6216b167095ab2f24702938ff373e1900302..b6d72a35555a64f375b1402fc3188c93357c3579 100644 (file)
@@ -1,14 +1,15 @@
 <?php
-if(! function_exists('community_init')) {
+
 function community_init(&$a) {
        if(! local_user()) {
                unset($_SESSION['theme']);
                unset($_SESSION['mobile-theme']);
        }
+
+
 }
-}
 
-if(! function_exists('community_content')) {
+
 function community_content(&$a, $update = 0) {
 
        $o = '';
@@ -114,9 +115,7 @@ function community_content(&$a, $update = 0) {
 
        return $o;
 }
-}
 
-if(! function_exists('community_getitems')) {
 function community_getitems($start, $itemspage) {
        if (get_config('system','community_page_style') == CP_GLOBAL_COMMUNITY)
                return(community_getpublicitems($start, $itemspage));
@@ -141,10 +140,9 @@ function community_getitems($start, $itemspage) {
        );
 
        return($r);
-}
+
 }
 
-if(! function_exists('community_getpublicitems')) {
 function community_getpublicitems($start, $itemspage) {
        $r = q("SELECT `item`.`uri`, `item`.*, `item`.`id` AS `item_id`,
                        `author-name` AS `name`, `owner-avatar` AS `photo`,
@@ -159,4 +157,3 @@ function community_getpublicitems($start, $itemspage) {
 
        return($r);
 }
-}