From: Mischa POSLAWSKY Date: Thu, 17 Oct 2019 00:05:09 +0000 (+0200) Subject: page: include partial templates from *.inc.html X-Git-Tag: v4.1~25 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/6c50820df359e22fd0aa9da49c11708aa50f8253 page: include partial templates from *.inc.html Rename system files to be distinguishable from public pages. --- diff --git a/403.html b/403.inc.html similarity index 100% rename from 403.html rename to 403.inc.html diff --git a/404.html b/404.inc.html similarity index 100% rename from 404.html rename to 404.inc.html diff --git a/500.html b/500.inc.html similarity index 100% rename from 500.html rename to 500.inc.html diff --git a/article.inc.php b/article.inc.php index a39b897..6fcb640 100644 --- a/article.inc.php +++ b/article.inc.php @@ -159,7 +159,7 @@ class PageSearch } # match **/*.html return $current->isDir() - || preg_match('/\.html$/', $current->getFilename()); + || preg_match('/(?getFilename()); } ); } diff --git a/foto/template.html b/foto/template.inc.html similarity index 100% rename from foto/template.html rename to foto/template.inc.html diff --git a/page.inc.php b/page.inc.php index c93fcbc..577f1e0 100644 --- a/page.inc.php +++ b/page.inc.php @@ -5,7 +5,7 @@ include_once 'head.inc.php'; print "
\n"; ob_start(); -include 'menu.html'; +include 'menu.inc.html'; ob_start(); if ($User) { print '