fix output of markdown, because accessing settings was wrong

This commit is contained in:
Uwe Steinmann 2023-04-28 11:22:14 +02:00
parent 78515e93b4
commit 96423e1388

View File

@ -771,7 +771,7 @@ $(document).ready( function() {
echo $txt; echo $txt;
} else { } else {
if($latestContent->getComment()) if($latestContent->getComment())
if($settings->_markdownComments) { if($this->params['settings']->_markdownComments) {
$Parsedown = new Parsedown(); $Parsedown = new Parsedown();
$comment = $Parsedown->text(htmlspecialchars($latestContent->getComment())); $comment = $Parsedown->text(htmlspecialchars($latestContent->getComment()));
print "<div class=\"content-comment\">".$comment."</div>"; print "<div class=\"content-comment\">".$comment."</div>";