From 33cf7605017e5e4c9d487497f5485b81aaf7bad1 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 8 Dec 2022 22:59:03 +0100 Subject: [PATCH] use dc methods for widget settings --- _widgets.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/_widgets.php b/_widgets.php index 15f15e3..92b5c75 100644 --- a/_widgets.php +++ b/_widgets.php @@ -153,8 +153,7 @@ class zoneclearFeedServerWidget } if (!dcCore::app()->blog->settings->zoneclearFeedServer->zoneclearFeedServer_active - || $w->homeonly == 1 && !dcCore::app()->url->isHome(dcCore::app()->url->type) - || $w->homeonly == 2 && dcCore::app()->url->isHome(dcCore::app()->url->type) + || !$w->checkHomeOnly(dcCore::app()->url->type) ) { return null; } @@ -214,8 +213,7 @@ class zoneclearFeedServerWidget } if (!dcCore::app()->blog->settings->zoneclearFeedServer->zoneclearFeedServer_active - || $w->homeonly == 1 && !dcCore::app()->url->isHome(dcCore::app()->url->type) - || $w->homeonly == 2 && dcCore::app()->url->isHome(dcCore::app()->url->type) + || !$w->checkHomeOnly(dcCore::app()->url->type) ) { return null; }