diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-03-26 15:42:05 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-03-26 15:42:05 +0000 |
commit | 8ba8caec2dcdfcb755beeeaebc83c5ad1e057758 (patch) | |
tree | 3834d961d46b647ddc22f1f1f9c3a88dc981d2ee /phpBB/ucp.php | |
parent | :( (diff) | |
download | phpbb-8ba8caec2dcdfcb755beeeaebc83c5ad1e057758.tar.gz phpbb-8ba8caec2dcdfcb755beeeaebc83c5ad1e057758.tar.bz2 phpbb-8ba8caec2dcdfcb755beeeaebc83c5ad1e057758.zip |
some tiny bugfixes and changed is_active() a bit...
git-svn-id: file:///svn/phpbb/trunk@7232 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/ucp.php')
-rwxr-xr-x | phpBB/ucp.php | 14 |
1 files changed, 11 insertions, 3 deletions
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 |