if (isBooleanConstantAndTrue('mxchange_installing')) {
// While we are installing ouput other header than while it is installed... :-)
$OUT = "";
- foreach ($FATAL as $key => $value) {
+ foreach (getFatalArray() as $key => $value) {
// Prepare content for the template
$content = array(
'key' => ($key + 1),
} elseif (isBooleanConstantAndTrue('mxchange_installed')) {
// Display all runtime fatal errors
$OUT = "";
- foreach ($FATAL as $key => $value) {
+ foreach (getFatalArray() as $key => $value) {
// Prepare content for the template
$content = array(
'key' => ($key + 1),
$GLOBALS['fatal_messages'] = array();
}
+// Getter for whole fatal error messages
+function getFatalArray () {
+ return $GLOBALS['fatal_messages'];
+}
+
// Add a fatal error message to the queue array
function addFatalMessage ($message, $extra="") {
if (is_array($extra)) {
if (empty($mysql['prefix'])) $mysql['prefix'] = "mxchange_";
if (getTotalFatalErrors() > 0) {
OUTPUT_HTML("<span class=\"install_fatal\">");
- foreach ($FATAL as $key => $err) {
+ foreach (getFatalArray() as $key => $err) {
OUTPUT_HTML(" <strong>·</strong> {--FATAL_NO--}".($key + 1).": ".$err."<br />");
}
OUTPUT_HTML("</span><br />");
if (getTotalFatalErrors() > 0) {
$OUT = "";
- foreach ($FATAL as $value) {
+ foreach (getFatalArray() as $value) {
$OUT .= " <li>".$value."</li>\n";
} // END foreach
define('__FATAL_ERROR_LI', $OUT);