aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-06-18 15:21:22 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-06-18 16:57:13 +0200
commitde103f60e32b0756d17299eba11ff8f3c1ed48f1 (patch)
tree247a8a806c2d2f05983a8201d98e51e82c7fae2f /phpBB
parent7e66fa0f8df3304f12737c1e1346340841d91eee (diff)
downloadforums-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')
-rw-r--r--phpBB/includes/functions_user.php20
-rw-r--r--phpBB/ucp.php20
2 files changed, 20 insertions, 20 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);
+ }
+}
diff --git a/phpBB/ucp.php b/phpBB/ucp.php
index 4c7723b0ac..182bc2e285 100644
--- a/phpBB/ucp.php
+++ b/phpBB/ucp.php
@@ -357,23 +357,3 @@ $module->assign_tpl_vars(append_sid("{$phpbb_root_path}ucp.$phpEx"));
// Generate the page, do not display/query online list
$module->display($module->get_page_title());
-
-/**
-* 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);
- }
-}