소스 검색

Fix call on method of an object just created with new/PHP 5.3.10 compatibility error.

theshka 10 년 전
부모
커밋
f4cc9727ff
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;
     }