diff --git a/_install.php b/_install.php index cf13cd6..adaaec6 100644 --- a/_install.php +++ b/_install.php @@ -26,7 +26,8 @@ if (version_compare($old_version, $new_version, '>=')) { try { # Check Dotclear version if (!method_exists('dcUtils', 'versionsCompare') - || dcUtils::versionsCompare(DC_VERSION, $dc_min, '<', false)) { + || dcUtils::versionsCompare(DC_VERSION, $dc_min, '<', false) + ) { throw new Exception(sprintf( '%s requires Dotclear %s', 'periodical', $dc_min )); diff --git a/_public.php b/_public.php index 245c4e5..94ed7ad 100644 --- a/_public.php +++ b/_public.php @@ -95,10 +95,10 @@ class publicPeriodical # Get posts to publish related to this period $posts_params = []; $posts_params['periodical_id'] = $periods->periodical_id; - $posts_params['post_status'] = '-2'; - $posts_params['order'] = $posts_order; - $posts_params['limit'] = $limit * $max_nb; - $posts_params['no_content'] = true; + $posts_params['post_status'] = '-2'; + $posts_params['order'] = $posts_order; + $posts_params['limit'] = $limit * $max_nb; + $posts_params['no_content'] = true; $posts = $core->auth->sudo([$per, 'getPosts'], $posts_params); if (!$posts->isEmpty()) {