From 5a32071cb1bc14eabee102bf796cda26d5aac277 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Sat, 12 Feb 2022 23:26:52 +0100 Subject: [PATCH] Use PageGenerator in comments.php. --- comment.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/comment.php b/comment.php index 87b54db3..366bced4 100644 --- a/comment.php +++ b/comment.php @@ -1,6 +1,11 @@ !$res, 'subscribe_confirm_success' => $res, ); - include S9Y_INCLUDE_PATH . 'include/genpage.inc.php'; + $pg = new PageGenerator($serendipity); + $pg->render(); $serendipity['smarty']->display(serendipity_getTemplateFile('index.tpl', 'serendipityPath')); exit; } @@ -46,7 +52,8 @@ if (!empty($_REQUEST['optin'])) { 'subscribe_confirm_error' => !$res, 'subscribe_confirm_success' => $res, ); - include S9Y_INCLUDE_PATH . 'include/genpage.inc.php'; + $pg = new PageGenerator($serendipity); + $pg->render(); $serendipity['smarty']->display(serendipity_getTemplateFile('index.tpl', 'serendipityPath')); exit; }