X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/a034b7a3f5b363f74a47c9f20bfa0cf4f2988b34..621fc2f9638a1a92aa8535310e7852de5542f11e:/nieuws/index.php diff --git a/nieuws/index.php b/nieuws/index.php index 392a10f..f74c632 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -1,14 +1,14 @@ login; @list ($year, $page) = explode('/', trim($Args, '/')); -if ($User and $User->admin("edit $Page")) { +if ($User->admin("edit $Page")) { print ''."\n"; } if ($page and !is_numeric($page)) { $Article->meta['og:type'] = 'article'; - $edit = $User && $User->admin("edit $Page$Args") ? htmlspecialchars(@$_GET['edit']) : NULL; + $edit = $User->admin("edit $Page$Args") ? htmlspecialchars(@$_GET['edit']) : NULL; if ($edit) { $Article->title = $edit; } @@ -16,7 +16,7 @@ if ($page and !is_numeric($page)) { $Place[1] = ' '.$Article->date.''; } print preg_replace('{(?<=

)(.*?)(?=

)}', ($edit ?: '\1').' [[1]]', $Article->raw); - if ($User and $User->admin("edit $Page$Args")) { + if ($User->admin("edit $Page$Args")) { $taglist = []; foreach (glob("$Page/.tags/*") as $tagpath) { $tagname = pathinfo($tagpath, PATHINFO_BASENAME);