aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_warn.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2006-08-28 17:20:21 +0000
committerNils Adermann <naderman@naderman.de>2006-08-28 17:20:21 +0000
commitc0a880b6652d330b760b7da7cdde8076f854d836 (patch)
treee83ab0835afa5660ff8f582535a25c2a1c1f0f69 /phpBB/includes/mcp/mcp_warn.php
parent1d37b69ddd79d9d6bc1346f3761a899d20305636 (diff)
downloadforums-c0a880b6652d330b760b7da7cdde8076f854d836.tar
forums-c0a880b6652d330b760b7da7cdde8076f854d836.tar.gz
forums-c0a880b6652d330b760b7da7cdde8076f854d836.tar.bz2
forums-c0a880b6652d330b760b7da7cdde8076f854d836.tar.xz
forums-c0a880b6652d330b760b7da7cdde8076f854d836.zip
- birthdays/age in user's timezone and not server's local time
- parse bbcode in posts with fewer characters than selected maximum on search results page - retrieve search word context in posts which are longer than maximum characters (no raw BBCode anymore) - formatted text is processed in the same order everywhere now: censor_text, replace newlines, bbcode, smileys, attachments, highlighting [including Bug #2048] - highlighting pattern updated to exclude style and script (e.g custom BBCode) [Bug #3856] - fixed a style problem in Opera [Bug #3770] - performance increase for user::img() - slight adjustments to search git-svn-id: file:///svn/phpbb/trunk@6321 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_warn.php')
-rwxr-xr-xphpBB/includes/mcp/mcp_warn.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/phpBB/includes/mcp/mcp_warn.php b/phpBB/includes/mcp/mcp_warn.php
index bc428570ab..9a6ae1ab8f 100755
--- a/phpBB/includes/mcp/mcp_warn.php
+++ b/phpBB/includes/mcp/mcp_warn.php
@@ -247,6 +247,7 @@ function mcp_warn_post_view($id, $mode, $action)
// We want to make the message available here as a reminder
// Parse the message and subject
$message = $userrow['post_text'];
+ $message = str_replace("\n", '<br />', censor_text($message));
// Second parse bbcode here
if ($userrow['bbcode_bitfield'])
@@ -260,9 +261,6 @@ function mcp_warn_post_view($id, $mode, $action)
// Always process smilies after parsing bbcodes
$message = smiley_text($message);
- // Replace naughty words such as farty pants
- $message = str_replace("\n", '<br />', censor_text($message));
-
// Generate the appropriate user information for the user we are looking at
$rank_title = $rank_img = '';
// get_user_rank($userrow['user_rank'], $userrow['user_posts'], $rank_title, $rank_img);