aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/message_parser.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-06-11 00:12:42 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-06-11 00:12:42 +0000
commit13a02f6cc5bcdb0654642135b2981633ac3996b5 (patch)
tree50e01ff1d2a73834c26fb72d229d46b02ec3da52 /phpBB/includes/message_parser.php
parent056ab23bb65aea43aeb0918e7d7992a8987890a8 (diff)
downloadforums-13a02f6cc5bcdb0654642135b2981633ac3996b5.tar
forums-13a02f6cc5bcdb0654642135b2981633ac3996b5.tar.gz
forums-13a02f6cc5bcdb0654642135b2981633ac3996b5.tar.bz2
forums-13a02f6cc5bcdb0654642135b2981633ac3996b5.tar.xz
forums-13a02f6cc5bcdb0654642135b2981633ac3996b5.zip
my round of bug fixes
git-svn-id: file:///svn/phpbb/trunk@7749 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/message_parser.php')
-rw-r--r--phpBB/includes/message_parser.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php
index 8b043271bc..1a70a7fd80 100644
--- a/phpBB/includes/message_parser.php
+++ b/phpBB/includes/message_parser.php
@@ -367,7 +367,7 @@ class bbcode_firstpass extends bbcode
* Parse code text from code tag
* @private
*/
- function bbcode_parse_code($stx, $code)
+ function bbcode_parse_code($stx, &$code)
{
switch (strtolower($stx))
{
@@ -1041,7 +1041,7 @@ class parse_message extends bbcode_firstpass
if ((!$msg_len && $mode !== 'sig') || $config['max_' . $mode . '_chars'] && $msg_len > $config['max_' . $mode . '_chars'])
{
- $this->warn_msg[] = (!$msg_len) ? $user->lang['TOO_FEW_CHARS'] : $user->lang['TOO_MANY_CHARS'];
+ $this->warn_msg[] = (!$msg_len) ? $user->lang['TOO_FEW_CHARS'] : sprintf($user->lang['TOO_MANY_CHARS_' . strtoupper($mode)], $msg_len, $config['max_' . $mode . '_chars']);
return $this->warn_msg;
}
}