aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2014-06-23 11:19:39 -0400
committerNils Adermann <naderman@naderman.de>2014-06-23 11:19:39 -0400
commit9f91e8e9bd907b15d7417a0994cf1040a1bd3985 (patch)
treedd72bc93918afe28508d1bed130f17795c642f76 /phpBB/includes/functions_user.php
parentb79aa2bf7807deebfae742449add0e7456a3fdc5 (diff)
parent1f9e1fd177c803d9cf12c20cba9bda37ef3ecf58 (diff)
downloadforums-9f91e8e9bd907b15d7417a0994cf1040a1bd3985.tar
forums-9f91e8e9bd907b15d7417a0994cf1040a1bd3985.tar.gz
forums-9f91e8e9bd907b15d7417a0994cf1040a1bd3985.tar.bz2
forums-9f91e8e9bd907b15d7417a0994cf1040a1bd3985.tar.xz
forums-9f91e8e9bd907b15d7417a0994cf1040a1bd3985.zip
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12612] Move functions from mcp.php to functions_mcp.php [ticket/12612] Move function from ucp.php to functions_user.php [ticket/12612] Move functions from memberlist.php to functions_display.php [ticket/12612] Move functions from posting.php to functions_posting.php
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index f22f84ee97..3422236d19 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -3545,3 +3545,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);
+ }
+}