summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
50f9b29)
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->raw($template);
$Page->meta['article:published_time'] = date('Y-m-d h:i:s O');
$Page->meta['article:author'] = '/' . $User->dir;
}
if (isset($Page->raw)) {
}
if (isset($Page->raw)) {
}
else {
# keep article contents
}
else {
# keep article contents
- if (!isset($Page->raw)) {
+ if (!isset($Page->body)) {
# no resulting output
http_response_code(404);
@require '404.inc.html';
# no resulting output
http_response_code(404);
@require '404.inc.html';
- $Page->raw = ob_get_clean();
+ $Page->raw = ob_get_clean() . $Page->raw;