aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cache.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/cache.php')
-rw-r--r--phpBB/includes/cache.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/phpBB/includes/cache.php b/phpBB/includes/cache.php
index 5198abdc3c..31b8b73e10 100644
--- a/phpBB/includes/cache.php
+++ b/phpBB/includes/cache.php
@@ -73,12 +73,7 @@ class cache extends acm
*/
function obtain_word_list()
{
- global $config, $user, $db;
-
- if (!$user->optionget('viewcensors') && $config['allow_nocensors'])
- {
- return array();
- }
+ global $db;
if (($censors = $this->get('_word_censors')) === false)
{