From: Alan Knowles Date: Thu, 24 Dec 2015 05:09:44 +0000 (+0800) Subject: Reader/FeedBody.php X-Git-Url: http://git.roojs.org/?p=web.Reader;a=commitdiff_plain;h=52c46cd856202288d86a2e62f4feeaf8a7226349 Reader/FeedBody.php --- diff --git a/Reader/FeedBody.php b/Reader/FeedBody.php index 5b49b22..9da80ba 100644 --- a/Reader/FeedBody.php +++ b/Reader/FeedBody.php @@ -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;