X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/882347cba815e99ba8e7ad28d077420aa986e7c5..76e9012a55abbbe190c2c97d25a17ec87426e687:/page.php diff --git a/page.php b/page.php index 894efc0..a05e158 100644 --- a/page.php +++ b/page.php @@ -165,13 +165,17 @@ elseif ($User and $User->admin) { # load static contents +require_once('article.inc.php'); +$Article = new ArchiveArticle($staticpage); + ob_start(); # page body ob_start(); # inner html print '
'."\n\n"; $found = FALSE; -if (isset($staticpage)) { - $found = include "./$staticpage"; +if ($Article->file) { + print $Article->raw; + $found = 1; } print "
\n\n";