Merge pull request #237 from theshka/master
Fix call on method of an object just created with new/PHP 5.3.10
This commit is contained in:
commit
e942d40187
@ -149,7 +149,8 @@ class Pico
|
|||||||
{
|
{
|
||||||
$content = preg_replace('#/\*.+?\*/#s', '', $content, 1); // Remove first comment (with meta)
|
$content = preg_replace('#/\*.+?\*/#s', '', $content, 1); // Remove first comment (with meta)
|
||||||
$content = str_replace('%base_url%', $this->base_url(), $content);
|
$content = str_replace('%base_url%', $this->base_url(), $content);
|
||||||
$content = (new ParsedownExtra())->text($content);
|
$Parsedown = new ParsedownExtra();
|
||||||
|
$content= $Parsedown->text($content);
|
||||||
|
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user