From 5e58eebbfc2e3e1a57c7970f90cb5ffbf48f4a91 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 5 Jan 2023 00:41:00 +0100 Subject: [PATCH] cosmetic --- _admin.php | 2 +- _public.php | 3 +-- default-templates/mustek/comListe.html | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/_admin.php b/_admin.php index 48dbd84..78b3d68 100644 --- a/_admin.php +++ b/_admin.php @@ -43,7 +43,7 @@ dcCore::app()->addBehaviors([ if (basename(__DIR__) == $type) { $item[0] = __('Comments list'); $item[1] = dcCore::app()->blog->settings->get(basename(__DIR__))->get('page_title') ?? __('Comments list'); - $item[2] = dcCore::app()->admin->blog_url . dcCore::app()->url->getURLFor(basename(__DIR__)); + $item[2] = dcCore::app()->admin->__get('blog_url') . dcCore::app()->url->getURLFor(basename(__DIR__)); } }, ]); diff --git a/_public.php b/_public.php index 4619e2f..149751f 100644 --- a/_public.php +++ b/_public.php @@ -239,7 +239,7 @@ class tplComListe public static function comListePagination(ArrayObject $attr, string $content): string { $params = "ctx->comments_params;'. "\n" . + '$params = dcCore::app()->ctx->comments_params;' . "\n" . dcCore::app()->callBehavior( 'templatePrepareParams', [ @@ -267,7 +267,6 @@ class tplComListe "ctx->nb_entry_per_page = $bakcup_old_nbpp; ' . "\n" . '?>'; - } public static function comListePaginationCounter(ArrayObject $attr): string diff --git a/default-templates/mustek/comListe.html b/default-templates/mustek/comListe.html index b6c96f9..a671e58 100644 --- a/default-templates/mustek/comListe.html +++ b/default-templates/mustek/comListe.html @@ -29,7 +29,7 @@ {{tpl:CommentOrderNumber}}. {{tpl:lang On}} {{tpl:CommentDate}}, {{tpl:CommentTime}}, {{tpl:lang by}} {{tpl:CommentAuthorLink}} -
({{tpl:lang source:}} {{tpl:CommentEntryTitle}}) +
({{tpl:lang Source:}} {{tpl:CommentEntryTitle}})