use dc methods for widget settings

This commit is contained in:
Jean-Christian Paul Denis 2022-12-08 22:57:23 +01:00
parent bdbab6f9de
commit b2918d5ebf
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -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;
}