Preview actual output on edit.
$Page->raw($template);
$Page->meta['article:published_time'] = date('Y-m-d h:i:s O');
$Page->meta['article:author'] = '/' . $User->dir;
+ $Page->body = NULL;
}
if (isset($Page->raw)) {
}
else {
# keep article contents
- if (!isset($Page->raw)) {
+ if (!isset($Page->body)) {
# no resulting output
http_response_code(404);
@require '404.inc.html';
- $Page->raw = ob_get_clean();
+ $Page->raw = ob_get_clean() . $Page->raw;
}
}