From 48e7041d14123605ec905ff5a952f4d5ad05f273 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 24 Oct 2021 09:33:44 +0200 Subject: [PATCH] cosmetics --- _install.php | 3 ++- _public.php | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) 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()) {