From ec3c42e4e79b5284355c654fef37a9cca127125c Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 8 Dec 2022 22:53:43 +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 4c1e4ec..5ce7778 100644 --- a/_widgets.php +++ b/_widgets.php @@ -158,8 +158,7 @@ class cinecturlink2Widget dcCore::app()->blog->settings->addNamespace('cinecturlink2'); if (!dcCore::app()->blog->settings->cinecturlink2->cinecturlink2_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; } @@ -272,8 +271,7 @@ class cinecturlink2Widget if (!dcCore::app()->blog->settings->cinecturlink2->cinecturlink2_active || !dcCore::app()->blog->settings->cinecturlink2->cinecturlink2_public_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; }