aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 6e1843315b..793d0d54bc 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -169,7 +169,14 @@ function get_forum_parents($forum_data)
// Obtain list of moderators of each forum
function get_moderators(&$forum_moderators, $forum_id = false)
{
- global $cache, $SID, $db, $acl_options, $phpEx;
+ global $config, $template, $db;
+
+ // Have we disabled the display of moderators? If so, then return
+ // from whence we came ... after setting an S_ template var
+ if (empty($config['load_moderators']))
+ {
+ return;
+ }
if (!empty($forum_id) && is_array($forum_id))
{