From f4cc9727ffb8a11d64c2967017558eeb2e642da7 Mon Sep 17 00:00:00 2001 From: theshka Date: Tue, 23 Jun 2015 19:06:53 -0400 Subject: [PATCH] Fix call on method of an object just created with new/PHP 5.3.10 compatibility error. --- lib/pico.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pico.php b/lib/pico.php index 5d4e00d..ffcd1a5 100644 --- a/lib/pico.php +++ b/lib/pico.php @@ -149,7 +149,8 @@ class Pico { $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; }