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}})