page: api attribute indicate index requests
[minimedit.git] / article.inc.php
index 9e920942c76b888bbf1da2cb5b8a8a0b06f70ceb..1dbda25e0dc1b3c70186114979605e71a8a9acfa 100644 (file)
@@ -4,6 +4,7 @@ class ArchiveArticle
        public $raw, $title, $body; # file contents
        public $meta = [];  # head metadata properties
        public $place = []; # template variables replaced in render()
+       public $api = FALSE; # requested programming interface
 
        function __construct($path)
        {
@@ -71,7 +72,7 @@ class ArchiveArticle
                if (empty($this->handler)) {
                        return;
                }
-               $User = NULL;
+               $this->api = TRUE;
                $Page = $this;
                $res = include "./{$this->handler}/index.php";
                return $res;