1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

some arrangements...

git-svn-id: file:///svn/phpbb/trunk@3883 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2003-04-18 13:07:19 +00:00
parent 25015ecc0b
commit 2bd1ced339
8 changed files with 347 additions and 499 deletions

View File

@@ -1633,9 +1633,8 @@ switch ($mode)
// Define censored word matches
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);
$censors = array();
obtain_word_list($censors);
$topic_rows = array();
@@ -1717,9 +1716,9 @@ switch ($mode)
// Shouldn't moderators be allowed to read uncensored title?
$topic_title = $row['topic_title'];
if (count($orig_word))
if (count($censors['match']))
{
$topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
$topic_title = preg_replace($censors['match'], $censors['replace'], $topic_title);
}
$template->assign_block_vars('topicrow', array(