diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-06-18 15:21:22 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-06-18 16:57:13 +0200 |
commit | de103f60e32b0756d17299eba11ff8f3c1ed48f1 (patch) | |
tree | 247a8a806c2d2f05983a8201d98e51e82c7fae2f /phpBB/includes/functions_user.php | |
parent | 7e66fa0f8df3304f12737c1e1346340841d91eee (diff) | |
download | forums-de103f60e32b0756d17299eba11ff8f3c1ed48f1.tar forums-de103f60e32b0756d17299eba11ff8f3c1ed48f1.tar.gz forums-de103f60e32b0756d17299eba11ff8f3c1ed48f1.tar.bz2 forums-de103f60e32b0756d17299eba11ff8f3c1ed48f1.tar.xz forums-de103f60e32b0756d17299eba11ff8f3c1ed48f1.zip |
[ticket/12612] Move function from ucp.php to functions_user.php
PHPBB3-12612
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r-- | phpBB/includes/functions_user.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 5a10f9f411..0f46587c58 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -3530,3 +3530,23 @@ function phpbb_get_banned_user_ids($user_ids = array(), $ban_end = true) return $banned_ids_list; } + +/** +* Function for assigning a template var if the zebra module got included +*/ +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); + } +} |