X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/da2d6e5537e9fdcd6f424ea1cc8ab6ef8f45727e..v5.0-26-g38cf6657d2:/article.inc.php diff --git a/article.inc.php b/article.inc.php index 1dbda25..f14de99 100644 --- a/article.inc.php +++ b/article.inc.php @@ -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()