From 4430deea8d457245b0434b2b71570ad692dc7f6c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 28 Feb 2009 23:54:12 +0000 Subject: [PATCH 1/1] Debug lines added --- inc/functions.php | 3 +++ inc/header.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/inc/functions.php b/inc/functions.php index e04576056a..9c34c9544e 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -2568,6 +2568,8 @@ function getActualVersion ($type = 0) { // Loads an include file and logs any missing files for debug purposes function LOAD_INC ($INC) { + echo "LOAD:{$INC}
\n"; + // Get constant path $PATH = constant('PATH'); @@ -2597,6 +2599,7 @@ function LOAD_INC ($INC) { function LOAD_INC_ONCE ($INC) { // Is it not loaded? if (!isset($GLOBALS['cache_array']['load_once'][$INC])) { + echo "ONCE:{$INC}
\n"; // Then try to load it LOAD_INC($INC); diff --git a/inc/header.php b/inc/header.php index 8d3cd966da..50eebd7742 100644 --- a/inc/header.php +++ b/inc/header.php @@ -78,10 +78,10 @@ if (($GLOBALS['header_sent'] != "1") && ($GLOBALS['header_sent'] != "2")) { define('__PAGE_TITLE', $TITLE); } elseif ((!isBooleanConstantAndTrue('mxchange_installed')) || (!isBooleanConstantAndTrue('admin_registered'))) { // Load language file because it was missing in installation finalizer step... *sigh* - $FQFN = sprintf("inc/language/install_%s.php", + $INC = sprintf("inc/language/install_%s.php", GET_LANGUAGE() ); - LOAD_INC_ONCE($FQFN); + LOAD_INC_ONCE($INC); // Installation mode define('__PAGE_TITLE', getMessage('INSTALLATION_OF_MXCHANGE')); -- 2.30.2