summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
dcf14e6)
Fix editing of new pages since
v4.2-24-ged38c6a767 (2020-02-04)
[page: article method to find handler code].
- $Article->raw = '<div class="static">'."\n\n".$Article->raw."</div>\n\n";
-elseif (!$Article->raw and $User and $User->admin("edit {$Article->link}")) {
+elseif ($User and $User->admin("edit {$Article->link}")) {
$Article->raw(file_exists("$Page/template.inc.html") ? "$Page/template.inc.html" : 'template.inc.html');
}
$Article->raw(file_exists("$Page/template.inc.html") ? "$Page/template.inc.html" : 'template.inc.html');
}
+if (isset($Article->raw)) {
+ $Article->raw = '<div class="static">'."\n\n".$Article->raw."</div>\n\n";
+}
# output dynamic and/or static html
# output dynamic and/or static html