Skip to content
Snippets Groups Projects
Commit e17e185a authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Content paragraph

parent 1ee0c849
No related branches found
No related tags found
1 merge request!6Feature/attributes
Pipeline #7886 passed
......@@ -205,7 +205,7 @@ class Notice
return $attribute_string;
}
private function addParagraphToConten()
private function addParagraphToContent()
{
if (0 === strpos($this->noticeContent, '<p>')) {
return false;
......@@ -222,7 +222,7 @@ class Notice
public function showNotice()
{
$noticeFormat = '<div %1$s>%2$s</div>';
if ($this->addParagraphToConten()) {
if ($this->addParagraphToContent()) {
$noticeFormat = '<div %1$s><p>%2$s</p></div>';
}
echo sprintf($noticeFormat, $this->getAttributesAsString(), $this->noticeContent);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment