use dc methods for widget settings

This commit is contained in:
Jean-Christian Denis 2022-12-08 22:58:22 +01:00
parent 6773baf48d
commit 325b11ab36
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -26,8 +26,7 @@ function myBlogNumbersWidgetPublic($w)
return; return;
} }
if (($w->homeonly == 1 && !dcCore::app()->url->isHome(dcCore::app()->url->type)) if (!$w->checkHomeOnly(dcCore::app()->url->type)) {
|| ($w->homeonly == 2 && dcCore::app()->url->isHome(dcCore::app()->url->type))) {
return null; return null;
} }