From d1fa772e4663e08d3a2483646f9adb3521e09cb1 Mon Sep 17 00:00:00 2001
From: James Atkinson <thefinn@users.sourceforge.net>
Date: Sun, 3 Feb 2002 18:34:36 +0000
Subject: Semi-fix for bug #511849 , see comments for more details

git-svn-id: file:///svn/phpbb/trunk@2046 89ea8834-ac86-4346-8a33-228a782c2dd0
---
 phpBB/viewtopic.php | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 82a359c15c..5c117953dd 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -998,6 +998,15 @@ for($i = 0; $i < $total_posts; $i++)
 	// output
 	//
 
+	//
+	// Highlight active words (primarily for search)
+	//
+	if( $highlight_active )
+	{
+		$message = preg_replace($highlight_match, $highlight_replace, $message);
+	}
+
+
 	//
 	// If the board has HTML off but the post has HTML
 	// on then we process it, else leave it alone
@@ -1037,14 +1046,6 @@ for($i = 0; $i < $total_posts; $i++)
 	}
 	$message = make_clickable($message);
 
-	//
-	// Highlight active words (primarily for search)
-	//
-	if( $highlight_active )
-	{
-		$message = preg_replace($highlight_match, $highlight_replace, $message);
-	}
-
 	//
 	// Replace naughty words
 	//
-- 
cgit v1.2.1