honor disable_discover_tab in mod/home - it isn't a tab here but basically block public content from showing if it's set.
This commit is contained in:
@@ -109,6 +109,11 @@ function home_content(&$a, $update = 0, $load = false) {
|
||||
}
|
||||
else {
|
||||
|
||||
if(get_config('system','disable_discover_tab')) {
|
||||
call_hooks('home_content',$o);
|
||||
return $o;
|
||||
}
|
||||
|
||||
if(! $update) {
|
||||
|
||||
$maxheight = get_config('system','home_divmore_height');
|
||||
|
Reference in New Issue
Block a user