]> git.mxchange.org Git - friendica.git/blobdiff - mod/network.php
Merge pull request #2213 from annando/1512-dfrn-request
[friendica.git] / mod / network.php
index fb48bba73811e5fa050ce59fa52cc1f6b66f79aa..a85e498db2ce7ea037eb0c067e367ea3b0287055 100644 (file)
@@ -6,6 +6,8 @@ function network_init(&$a) {
        }
 
        $is_a_date_query = false;
+       if(x($_GET['cid']) && intval($_GET['cid']) != 0)
+               $cid = $_GET['cid'];
 
        if($a->argc > 1) {
                for($x = 1; $x < $a->argc; $x ++) {
@@ -146,7 +148,7 @@ function network_init(&$a) {
        }
 
        $a->page['aside'] .= (feature_enabled(local_user(),'groups') ? group_side('network/0','network','standard',$group_id) : '');
-       $a->page['aside'] .= (feature_enabled(local_user(),'forumlist_widget') ? widget_forumlist($a) : '');
+       $a->page['aside'] .= (feature_enabled(local_user(),'forumlist_widget') ? widget_forumlist(local_user(),$cid) : '');
        $a->page['aside'] .= posted_date_widget($a->get_baseurl() . '/network',local_user(),false);
        $a->page['aside'] .= networks_widget($a->get_baseurl(true) . '/network',(x($_GET, 'nets') ? $_GET['nets'] : ''));
        $a->page['aside'] .= saved_searches($search);
@@ -310,7 +312,7 @@ function network_content(&$a, $update = 0) {
                return login(false);
        }
 
-       // TODO:is this really necessary? $a is already available to hooks
+       /// @TODO Is this really necessary? $a is already available to hooks
        $arr = array('query' => $a->query_string);
        call_hooks('network_content_init', $arr);
 
@@ -344,8 +346,8 @@ function network_content(&$a, $update = 0) {
        $o = '';
 
        // item filter tabs
-       // TODO: fix this logic, reduce duplication
-       //$a->page['content'] .= '<div class="tabs-wrapper">';
+       /// @TODO fix this logic, reduce duplication
+       //$a->page['content'] .= '<div class="tabs-wrapper">';
 
        list($no_active, $all_active, $postord_active, $conv_active, $new_active, $starred_active, $bookmarked_active, $spam_active) = network_query_get_sel_tab($a);
        // if no tabs are selected, defaults to comments