mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
More functions added ...
git-svn-id: file:///svn/phpbb/trunk@4025 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -728,11 +728,16 @@ function on_page($num_items, $per_page, $start)
|
||||
// to return both sets of arrays
|
||||
function obtain_word_list(&$censors)
|
||||
{
|
||||
global $db, $cache;
|
||||
global $db, $cache, $user;
|
||||
|
||||
if (!$user->data['user_viewcensors'] && !$user->data['coppa'] && $config['allow_nocensors'])
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if ($cache->exists('word_censors'))
|
||||
{
|
||||
$censors = $cache->get('word_censors'); // transfer to just if (!(...)) ? works fine for me
|
||||
$censors = $cache->get('word_censors');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user