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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user