mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +02:00
if used more than once, do not print out notices. ;)
git-svn-id: file:///svn/phpbb/trunk@7814 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1250,9 +1250,7 @@ class parse_message extends bbcode_firstpass
|
||||
}
|
||||
|
||||
// Make sure the delimiter # is added in front and at the end of every element within $match
|
||||
$match = explode(chr(0), '#' . implode('#' . chr(0) . '#', $match) . '#');
|
||||
|
||||
$this->message = trim(preg_replace($match, $replace, $this->message));
|
||||
$this->message = trim(preg_replace(explode(chr(0), '#' . implode('#' . chr(0) . '#', $match) . '#'), $replace, $this->message));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user