argc > 1) ? intval($a->argv[1]) : 0); if (!$item_id) { $a->error = 404; notice(L10n::t('Item not found.') . EOL); return; } $item = Item::selectFirst(['body'], ['uid' => local_user(), 'id' => $item_id]); if (DBA::isResult($item)) { if ($a->isAjax()) { echo str_replace("\n", '
', $item['body']); exit(); } else { $o .= str_replace("\n", '
', $item['body']); } } return $o; }