mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fixed BBCodeParser config API usage
This commit is contained in:
parent
36855b89e0
commit
caaf5a2d78
@ -182,7 +182,7 @@ class BBCodeParser extends TextParser {
|
||||
$this->content = preg_replace("/\n\s*\n/", "</p><p>", $this->content);
|
||||
$this->content = str_replace("\n", "<br />", $this->content);
|
||||
|
||||
if(BBCodeParser::smiliesAllowed()) {
|
||||
if($this->config()->allow_smilies) {
|
||||
$smilies = array(
|
||||
'#(?<!\w):D(?!\w)#i' => " <img src='".BBCodeParser::smilies_location(). "/grin.gif'> ", // :D
|
||||
'#(?<!\w):\)(?!\w)#i' => " <img src='".BBCodeParser::smilies_location(). "/smile.gif'> ", // :)
|
||||
|
Loading…
x
Reference in New Issue
Block a user