aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/mcp.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-04-18 13:07:19 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-04-18 13:07:19 +0000
commit2bd1ced3396c0eed0d05e8510de5cef691fd9321 (patch)
treebc9d2bbc4d2a482658c13bf563afe8a06dddab2a /phpBB/mcp.php
parent25015ecc0b27945aebde5235a93c125a3f3984d9 (diff)
downloadforums-2bd1ced3396c0eed0d05e8510de5cef691fd9321.tar
forums-2bd1ced3396c0eed0d05e8510de5cef691fd9321.tar.gz
forums-2bd1ced3396c0eed0d05e8510de5cef691fd9321.tar.bz2
forums-2bd1ced3396c0eed0d05e8510de5cef691fd9321.tar.xz
forums-2bd1ced3396c0eed0d05e8510de5cef691fd9321.zip
some arrangements...
git-svn-id: file:///svn/phpbb/trunk@3883 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/mcp.php')
-rw-r--r--phpBB/mcp.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/phpBB/mcp.php b/phpBB/mcp.php
index e27a77ae26..8fd301ffc2 100644
--- a/phpBB/mcp.php
+++ b/phpBB/mcp.php
@@ -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(