1
0
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:
Paul S. Owen
2003-05-20 12:16:25 +00:00
parent d43770db28
commit 208a3b96bf
10 changed files with 153 additions and 42 deletions

View File

@@ -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
{