From 524d273d080965501ed4d4ac5ee933507f2e87e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Kov=C3=A1=C4=8D?= Date: Sun, 20 Oct 2024 03:59:11 +0700 Subject: [PATCH] Fix missing ingame header and footer Revert Ingame MOTD header and footer to fix missing layout and style. It was in original repository https://github.com/hlstatsx/hlstatsx-community-edition/blob/11cac08de8c01b7a07897562596e59b7f0f86230/web/includes/functions.php#L208-209 --- src/web/includes/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/web/includes/functions.php b/src/web/includes/functions.php index b859ec75..8e2184d5 100644 --- a/src/web/includes/functions.php +++ b/src/web/includes/functions.php @@ -217,6 +217,8 @@ function pageHeader($title = '', $location = '') global $db, $g_options; if ( defined('PAGE') && PAGE == 'HLSTATS' ) include (PAGE_PATH . '/header.php'); + elseif ( defined('PAGE') && PAGE == 'INGAME' ) + include (PAGE_PATH . '/ingame/header.php'); } @@ -236,6 +238,8 @@ function pageFooter() global $g_options; if ( defined('PAGE') && PAGE == 'HLSTATS' ) include (PAGE_PATH . '/footer.php'); + elseif ( defined('PAGE') && PAGE == 'INGAME' ) + include (PAGE_PATH . '/ingame/footer.php'); } /**