mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Code rejiggle to move highlight back after smilie parsing
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3321 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
eeb00fa1ec
commit
1246ed0b11
1 changed files with 16 additions and 16 deletions
|
@ -1078,6 +1078,22 @@ for($i = 0; $i < $total_posts; $i++)
|
|||
}
|
||||
$message = make_clickable($message);
|
||||
|
||||
//
|
||||
// Parse smilies
|
||||
//
|
||||
if ( $board_config['allow_smilies'] )
|
||||
{
|
||||
if ( $postrow[$i]['user_allowsmile'] && $user_sig != '' )
|
||||
{
|
||||
$user_sig = smilies_pass($user_sig);
|
||||
}
|
||||
|
||||
if ( $postrow[$i]['enable_smilies'] )
|
||||
{
|
||||
$message = smilies_pass($message);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Highlight active words (primarily for search)
|
||||
//
|
||||
|
@ -1103,22 +1119,6 @@ for($i = 0; $i < $total_posts; $i++)
|
|||
$message = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $message . '<'), 1, -1));
|
||||
}
|
||||
|
||||
//
|
||||
// Parse smilies
|
||||
//
|
||||
if ( $board_config['allow_smilies'] )
|
||||
{
|
||||
if ( $postrow[$i]['user_allowsmile'] && $user_sig != '' )
|
||||
{
|
||||
$user_sig = smilies_pass($user_sig);
|
||||
}
|
||||
|
||||
if ( $postrow[$i]['enable_smilies'] )
|
||||
{
|
||||
$message = smilies_pass($message);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Replace newlines (we use this rather than nl2br because
|
||||
// till recently it wasn't XHTML compliant)
|
||||
|
|
Loading…
Add table
Reference in a new issue