mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
some tiny bugfixes and changed is_active() a bit...
git-svn-id: file:///svn/phpbb/trunk@7232 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -245,9 +245,7 @@ if (!$user->data['is_registered'])
|
||||
$module->list_modules('ucp');
|
||||
|
||||
// Check if the zebra module is set
|
||||
$zebra_enabled = $module->is_active('zebra') ? true : false;
|
||||
|
||||
if ($zebra_enabled)
|
||||
if ($module->is_active('zebra', 'friends'))
|
||||
{
|
||||
// Output listing of friends online
|
||||
$update_time = $config['load_online_time'] * 60;
|
||||
@@ -314,6 +312,16 @@ function _module_zebra($mode, &$module_row)
|
||||
global $template;
|
||||
|
||||
$template->assign_var('S_ZEBRA_ENABLED', true);
|
||||
|
||||
if ($mode == 'friends')
|
||||
{
|
||||
$template->assign_var('S_ZEBRA_FRIENDS_ENABLED', true);
|
||||
}
|
||||
|
||||
if ($mode == 'foes')
|
||||
{
|
||||
$template->assign_var('S_ZEBRA_FOES_ENABLED', true);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user