From 5740cf635abcc033f31ad2c71f8b3d7bc2fadf23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gauvain=20Boich=C3=A9?= Date: Mon, 6 Apr 2020 14:03:05 +0200 Subject: [PATCH] =?UTF-8?q?heures=20jour/nuit=20modifi=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/functions.php | 2 +- includes/functions_display.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index c116eb2..c6ae59b 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -4130,7 +4130,7 @@ function page_header($page_title = '', $display_online_list = false, $item_id = } $current_hour = date('H'); - $day_state = $current_hour >= 4 && $current_hour <= 16 ? 'jour' : 'nuit'; + $day_state = $current_hour >= 6 && $current_hour <= 18 ? 'jour' : 'nuit'; // The following assigns all _common_ variables that may be used at any point in a template. $template->assign_vars(array( diff --git a/includes/functions_display.php b/includes/functions_display.php index ccd7c9e..cf0ad1c 100644 --- a/includes/functions_display.php +++ b/includes/functions_display.php @@ -422,7 +422,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod } $current_hour = date('H'); - $day_state = $current_hour >= 4 && $current_hour <= 16 ? 'jour' : 'nuit'; + $day_state = $current_hour >= 6 && $current_hour <= 18 ? 'jour' : 'nuit'; $forum_image = str_replace(".", "_$day_state.", $row['forum_image']); $cat_row = array( @@ -606,7 +606,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod } $current_hour = date('H'); - $day_state = $current_hour >= 4 && $current_hour <= 16 ? 'jour' : 'nuit'; + $day_state = $current_hour >= 6 && $current_hour <= 18 ? 'jour' : 'nuit'; $forum_image = str_replace(".", "_$day_state.", $row['forum_image']); $forum_row = array(