From 325b11ab3669f5d8e2d8a365eea1c25957ce481b Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 8 Dec 2022 22:58:22 +0100 Subject: [PATCH] use dc methods for widget settings --- _public.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_public.php b/_public.php index 4614b0e..467a154 100644 --- a/_public.php +++ b/_public.php @@ -26,8 +26,7 @@ function myBlogNumbersWidgetPublic($w) return; } - 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; }