git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
page: call handler through index method
[minimedit.git]
/
article.inc.php
diff --git
a/article.inc.php
b/article.inc.php
index 1dbda25e0dc1b3c70186114979605e71a8a9acfa..f14de99079301d2574d0ae5752c5d5af76a22579 100644
(file)
--- a/
article.inc.php
+++ b/
article.inc.php
@@
-66,16
+66,16
@@
class ArchiveArticle
return;
}
return;
}
- function index()
+ function index(
$api = TRUE
)
{
$this->handler;
if (empty($this->handler)) {
return;
}
{
$this->handler;
if (empty($this->handler)) {
return;
}
- $this->api =
TRUE
;
+ $this->api =
$api
;
$Page = $this;
$Page = $this;
-
$res = include "./{$this->handler}/index.php"
;
- return
$res
;
+
global $User
;
+ return
require "./{$this->handler}/index.php"
;
}
function restricted()
}
function restricted()