From: Roland Häder <roland@mxchange.org>
Date: Sat, 28 Feb 2009 23:54:12 +0000 (+0000)
Subject: Debug lines added
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4430deea8d457245b0434b2b71570ad692dc7f6c;p=mailer.git

Debug lines added
---

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}<br />\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}<br />\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'));