浏览代码

Merge pull request #237 from theshka/master

Fix call on method of an object just created with new/PHP 5.3.10
Tyler Heshka 10 年之前
父节点
当前提交
e942d40187
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      lib/pico.php

+ 2 - 1
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;
     }