From 0b45344ae04dec33bae9352907c46c1681ba17d6 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 23 Apr 2023 21:00:22 +0200 Subject: [PATCH] use Date helper --- src/Widgets.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Widgets.php b/src/Widgets.php index 79eb719..81710a9 100644 --- a/src/Widgets.php +++ b/src/Widgets.php @@ -15,10 +15,10 @@ declare(strict_types=1); namespace Dotclear\Plugin\shortArchives; use dcCore; +use Dotclear\Helper\Date; use Dotclear\Helper\Html\Html; use Dotclear\Plugin\widgets\WidgetsStack; use Dotclear\Plugin\widgets\WidgetsElement; -use dt; class Widgets { @@ -59,9 +59,9 @@ class Widgets $posts = []; while ($rs->fetch()) { - $posts[dt::dt2str(__('%Y'), $rs->f('dt'))][] = [ + $posts[Date::dt2str(__('%Y'), $rs->f('dt'))][] = [ 'url' => $rs->url(), - 'date' => Html::escapeHTML(dt::dt2str(__('%B'), $rs->f('dt'))), + 'date' => Html::escapeHTML(Date::dt2str(__('%B'), $rs->f('dt'))), 'nbpost' => $rs->f('nb_post'), ]; }