Skip to content

Commit

Permalink
Merge pull request #237 from theshka/master
Browse files Browse the repository at this point in the history
Fix call on method of an object just created with new/PHP 5.3.10
  • Loading branch information
theshka committed Jun 23, 2015
2 parents 6e50ac5 + f4cc972 commit e942d40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pico.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ protected function parse_content($content)
{
$content = preg_replace('#/\*.+?\*/#s', '', $content, 1); // Remove first comment (with meta)
$content = str_replace('%base_url%', $this->base_url(), $content);
$content = (new ParsedownExtra())->text($content);
$Parsedown = new ParsedownExtra();
$content= $Parsedown->text($content);

return $content;
}
Expand Down

0 comments on commit e942d40

Please sign in to comment.