mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02: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 = preg_replace("/\n\s*\n/", "</p><p>", $this->content);
|
||||||
$this->content = str_replace("\n", "<br />", $this->content);
|
$this->content = str_replace("\n", "<br />", $this->content);
|
||||||
|
|
||||||
if(BBCodeParser::smiliesAllowed()) {
|
if($this->config()->allow_smilies) {
|
||||||
$smilies = array(
|
$smilies = array(
|
||||||
'#(?<!\w):D(?!\w)#i' => " <img src='".BBCodeParser::smilies_location(). "/grin.gif'> ", // :D
|
'#(?<!\w):D(?!\w)#i' => " <img src='".BBCodeParser::smilies_location(). "/grin.gif'> ", // :D
|
||||||
'#(?<!\w):\)(?!\w)#i' => " <img src='".BBCodeParser::smilies_location(). "/smile.gif'> ", // :)
|
'#(?<!\w):\)(?!\w)#i' => " <img src='".BBCodeParser::smilies_location(). "/smile.gif'> ", // :)
|
||||||
|
Loading…
Reference in New Issue
Block a user