Merge pull request #256 from annando/1502-new-community-setting
The community settings have changed in the core. This will respect it.pull/257/head
commit
362efbc6c8
|
@ -199,9 +199,13 @@ function communityhome_home(&$a, &$o){
|
||||||
$o = file_get_contents('home.html');
|
$o = file_get_contents('home.html');
|
||||||
|
|
||||||
if (get_config('communityhome','showcommunitystream')===true){
|
if (get_config('communityhome','showcommunitystream')===true){
|
||||||
$oldset = get_config('system','no_community_page');
|
$oldset = get_config('system','community_page_style');
|
||||||
set_config('system','no_community_page', false);
|
if ($oldset == CP_NO_COMMUNITY_PAGE)
|
||||||
|
set_config('system','community_page_style', CP_USERS_ON_SERVER);
|
||||||
|
|
||||||
$o .= community_content($a,1);
|
$o .= community_content($a,1);
|
||||||
set_config('system','no_community_page', $oldset);
|
|
||||||
|
if ($oldset == CP_NO_COMMUNITY_PAGE)
|
||||||
|
set_config('system','community_page_style', $oldset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue