Debug lines added
authorRoland Häder <roland@mxchange.org>
Sat, 28 Feb 2009 23:54:12 +0000 (23:54 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 28 Feb 2009 23:54:12 +0000 (23:54 +0000)
inc/functions.php
inc/header.php

index e045760..9c34c95 100644 (file)
@@ -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);
 
index 8d3cd96..50eebd7 100644 (file)
@@ -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'));