use dc methods for widget settings

master
Jean-Christian Paul Denis 2022-12-08 22:56:52 +01:00
parent cd4073ea8a
commit e7cd3f37eb
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 1 additions and 2 deletions

View File

@ -23,8 +23,7 @@ function lastBlogUpdateWidgetPublic($w)
} }
# Nothing to display # Nothing to display
if ($w->homeonly == 1 && dcCore::app()->url->type != 'default' if (!$w->checkHomeOnly(dcCore::app()->url->type)
|| $w->homeonly == 2 && dcCore::app()->url->type == 'default'
|| !$w->blog_show && !$w->post_show && !$w->comment_show && !$w->media_show || !$w->blog_show && !$w->post_show && !$w->comment_show && !$w->media_show
|| !$w->blog_text && !$w->post_text && !$w->comment_text && !$w->media_text) { || !$w->blog_text && !$w->post_text && !$w->comment_text && !$w->media_text) {
return null; return null;