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;