page: retrieve static contents from article object
[minimedit.git] / page.php
index fb39f5143dfcd68f56aeb9ea07f5025e1ed29b74..a05e158f198960358599af2001522c2f13cc1fc7 100644 (file)
--- a/page.php
+++ b/page.php
@@ -173,8 +173,9 @@ ob_start(); # inner html
 print '<div class="static">'."\n\n";
 
 $found = FALSE;
-if (isset($staticpage)) {
-       $found = include "./$staticpage";
+if ($Article->file) {
+       print $Article->raw;
+       $found = 1;
 }
 
 print "</div>\n\n";