git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
issue/report: activity widget to list latest messages
[minimedit.git]
/
edit
/
nieuws
/
tag
/
index.php
diff --git
a/edit/nieuws/tag/index.php
b/edit/nieuws/tag/index.php
index 9bfb5156b7e1208106bad6c8817c813263b40082..ba57adcdaef0bf83f1f0ece13ccb7b88df8ad746 100644
(file)
--- a/
edit/nieuws/tag/index.php
+++ b/
edit/nieuws/tag/index.php
@@
-1,11
+1,11
@@
<?php
if (!$_POST)
abort("niets te doen", '405 post error');
<?php
if (!$_POST)
abort("niets te doen", '405 post error');
-if (!$
Args
)
+if (!$
Page->path
)
abort("pagina niet opgegeven", '409 input error');
abort("pagina niet opgegeven", '409 input error');
-$pagename = ltrim($
Args
, '/').'.html';
-if (!$User
or !$User
->admin("edit $pagename"))
+$pagename = ltrim($
Page->path
, '/').'.html';
+if (!$User->admin("edit $pagename"))
abort("geen beheersrechten", '401 unauthorised');
@list ($category, $year, $article) = explode('/', $pagename);
abort("geen beheersrechten", '401 unauthorised');
@list ($category, $year, $article) = explode('/', $pagename);