Reader/FeedBody.php
authorAlan Knowles <alan@roojs.com>
Thu, 24 Dec 2015 05:09:44 +0000 (13:09 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 24 Dec 2015 05:09:44 +0000 (13:09 +0800)
Reader/FeedBody.php

index 5b49b22..9da80ba 100644 (file)
@@ -28,6 +28,9 @@ class Reader_FeedBody extends Pman
         if (!$read->get($id)) {
             $this->jerr("invalid page");
         }
+        if (!empty($_REQUEST['as_json'])) {
+            $this->jok(file_get_contents($read->article()->toFilename()));
+        }
         if (empty($_REQUEST['flag_read'])) {
             echo file_get_contents($read->article()->toFilename());
             exit;