aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-08-15 16:15:26 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-08-15 16:15:26 +0000
commit816f2670fa61b89ccd4b9f75fec6bbc7a28024c8 (patch)
tree6a2ce48d68c2acebac6d888f4e10e2112aa4cccb
parent5f3f4668984019e3b1b5a57821e7f3eb1ababd8b (diff)
downloadforums-816f2670fa61b89ccd4b9f75fec6bbc7a28024c8.tar
forums-816f2670fa61b89ccd4b9f75fec6bbc7a28024c8.tar.gz
forums-816f2670fa61b89ccd4b9f75fec6bbc7a28024c8.tar.bz2
forums-816f2670fa61b89ccd4b9f75fec6bbc7a28024c8.tar.xz
forums-816f2670fa61b89ccd4b9f75fec6bbc7a28024c8.zip
Match topic and post subject too
git-svn-id: file:///svn/phpbb/trunk@885 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/viewtopic.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 2fdcd9449f..ff7b4a9059 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -436,6 +436,14 @@ $view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topi
$reply_img = ($forum_row['forum_status'] == FORUM_LOCKED || $forum_row['topic_status'] == TOPIC_LOCKED) ? $images['reply_locked'] : $images['reply_new'];
$post_img = ($forum_row['forum_status'] == FORUM_LOCKED) ? $images['post_locked'] : $images['post_new'];
+//
+// Censor topic title
+//
+if( count($orig_word) )
+{
+ $topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
+}
+
$template->assign_vars(array(
"FORUM_NAME" => $forum_name,
"TOPIC_TITLE" => $topic_title,
@@ -635,6 +643,7 @@ for($i = 0; $i < $total_posts; $i++)
if( count($orig_word) )
{
+ $post_subject = preg_replace($orig_word, $replacement_word, $post_subject);
$message = preg_replace($orig_word, $replacement_word, $message);
}