From c2423a9cb3aed7e9f299d2a6c46967157061f63c Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sat, 27 Oct 2018 17:38:52 +0200 Subject: [PATCH] nieuws: prepend article header to page title --- head.inc.php | 3 +++ nieuws/index.php | 1 + 2 files changed, 4 insertions(+) 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) { -- 2.30.0