From 8ba8caec2dcdfcb755beeeaebc83c5ad1e057758 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Mon, 26 Mar 2007 15:42:05 +0000 Subject: some tiny bugfixes and changed is_active() a bit... git-svn-id: file:///svn/phpbb/trunk@7232 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/ucp.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'phpBB/ucp.php') diff --git a/phpBB/ucp.php b/phpBB/ucp.php index f4ddd55f6d..6812cd59b9 100755 --- a/phpBB/ucp.php +++ b/phpBB/ucp.php @@ -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); + } } ?> \ No newline at end of file -- cgit v1.2.1