From: Mischa POSLAWSKY Date: Sat, 27 Oct 2018 15:38:52 +0000 (+0200) Subject: nieuws: prepend article header to page title X-Git-Tag: v3.8~15 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/c2423a9cb3aed7e9f299d2a6c46967157061f63c nieuws: prepend article header to page title --- diff --git a/head.inc.php b/head.inc.php index 63621b5..9e0cbd5 100644 --- a/head.inc.php +++ b/head.inc.php @@ -2,6 +2,9 @@ + + <?= htmlspecialchars($Place['title']) ?> + diff --git a/nieuws/index.php b/nieuws/index.php index 746baec..d56758e 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -11,6 +11,7 @@ if (!empty($User['admin'])) { if ($page and !is_numeric($page)) { $edit = !empty($User['admin']) ? htmlspecialchars(@$_GET['edit']) : NULL; $article = new ArchiveArticle("$Page$Args.html"); + $Place['title'] = $article->title; $Place[1] = ' '.$article->date.''; print preg_replace('{(?<=

)(.*?)(?=

)}', ($edit ?: '\1').' [[1]]', ob_get_clean()); if ($article->file and $article->image) {