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: replace global variables by $Page object
[minimedit.git]
/
edit
/
nieuws
/
tag
/
index.php
diff --git
a/edit/nieuws/tag/index.php
b/edit/nieuws/tag/index.php
index ca477c8c4427e10f133c8589d3ccb1651bb6b964..ba57adcdaef0bf83f1f0ece13ccb7b88df8ad746 100644
(file)
--- a/
edit/nieuws/tag/index.php
+++ b/
edit/nieuws/tag/index.php
@@
-1,10
+1,10
@@
<?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';
+$pagename = ltrim($
Page->path
, '/').'.html';
if (!$User->admin("edit $pagename"))
abort("geen beheersrechten", '401 unauthorised');
if (!$User->admin("edit $pagename"))
abort("geen beheersrechten", '401 unauthorised');