X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/0ddf79607092e0aaaa69e46e3f2d4160117da495..af5d5f4037aabc493afa60a5394ab3f8f6134917:/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()