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