page: call handler through index method
[minimedit.git] / article.inc.php
index 1dbda25e0dc1b3c70186114979605e71a8a9acfa..f14de99079301d2574d0ae5752c5d5af76a22579 100644 (file)
@@ -66,16 +66,16 @@ class ArchiveArticle
                return;
        }
 
-       function index()
+       function index($api = TRUE)
        {
                $this->handler;
                if (empty($this->handler)) {
                        return;
                }
-               $this->api = TRUE;
+               $this->api = $api;
                $Page = $this;
-               $res = include "./{$this->handler}/index.php";
-               return $res;
+               global $User;
+               return require "./{$this->handler}/index.php";
        }
 
        function restricted()