diff options
author | natec <natec@users.sourceforge.net> | 2001-10-24 22:52:24 +0000 |
---|---|---|
committer | natec <natec@users.sourceforge.net> | 2001-10-24 22:52:24 +0000 |
commit | a719de20ea0c4673c4a534649eaf26cf7b367f61 (patch) | |
tree | d00f4751de8b6619913f75964aaff1e8252faaa6 /phpBB/posting.php | |
parent | 1cb57d636726160443f048c53aff087feff6f0cb (diff) | |
download | forums-a719de20ea0c4673c4a534649eaf26cf7b367f61.tar forums-a719de20ea0c4673c4a534649eaf26cf7b367f61.tar.gz forums-a719de20ea0c4673c4a534649eaf26cf7b367f61.tar.bz2 forums-a719de20ea0c4673c4a534649eaf26cf7b367f61.tar.xz forums-a719de20ea0c4673c4a534649eaf26cf7b367f61.zip |
[quote=username] bbcode.
git-svn-id: file:///svn/phpbb/trunk@1243 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 84d4e2ca12..c7ff3301a2 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1932,6 +1932,7 @@ else $post_username = ( $post_user_id == ANONYMOUS && $postrow['post_username'] != "") ? $postrow['post_username'] : $postrow['username']; $post_subject = $postrow['post_subject']; $post_message = $postrow['post_text']; + $post_bbcode_uid = $postrow['bbcode_uid']; if( $mode == "editpost" ) { @@ -1944,7 +1945,7 @@ else $user_sig = $userdata['user_sig']; } - $post_message = preg_replace("/\:[0-9a-z\:]*?\]/si", "]", $post_message); + $post_message = preg_replace("/\:$post_bbcode_uid(|\:[a-z])/si", "", $post_message); $post_message = str_replace("<br />", "\n", $post_message); $post_message = preg_replace($html_entities_match, $html_entities_replace, $post_message); $post_message = preg_replace('#</textarea>#si', '</textarea>', $post_message); @@ -1959,7 +1960,7 @@ else $msg_date = create_date($board_config['default_dateformat'], $postrow['post_time'], $board_config['board_timezone']); - $post_message = $post_username . " " . $lang['wrote'] . ":\n\n[quote]\n" . $post_message . "\n[/quote]"; + $post_message = "[quote=" . $post_username . "]\n" . $post_message . "\n[/quote]"; $mode = "reply"; } |