From b2918d5ebfbe72b31a89f4166a6c1c910b7c33d8 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 8 Dec 2022 22:57:23 +0100 Subject: [PATCH] use dc methods for widget settings --- _widgets.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_widgets.php b/_widgets.php index fff5eb2..61dfd4e 100644 --- a/_widgets.php +++ b/_widgets.php @@ -221,8 +221,7 @@ class lastpostsextendWidget } # Home page only - if (($w->homeonly == 1 && !dcCore::app()->url->isHome(dcCore::app()->url->type)) - || ($w->homeonly == 2 && dcCore::app()->url->isHome(dcCore::app()->url->type))) { + if (!$w->checkHomeOnly(dcCore::app()->url->type)) { return null; }