<?php
+if (file_exists($Page->file) and !is_writable($Page->file)) {
+ return;
+}
+
if (!isset($Page->raw)) {
# open bottom template as initial contents
$template = 'template.inc.html';
$Page->body = NULL;
}
-$editpage = $Page->link;
-if (is_dir($editpage)) {
- if (file_exists("$editpage/index.html")) {
- $editpage .= '/index.html';
- }
-}
-else {
- $editpage .= '.html';
-}
-if (file_exists($editpage) and !is_writable($editpage)) {
- return;
-}
-
if (isset($Page->raw)) {
# restore meta tags in static contents for editing
foreach (array_reverse($Page->meta) as $metaprop => $val) {