From 09f120bc3ab97a58ba6abbb519fbe124cebbbaed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 20 Feb 2009 15:12:18 +0000 Subject: [PATCH] Constant OUTPUT_MODE rewritten --- inc/functions.php | 6 +++--- inc/install-inc.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/inc/functions.php b/inc/functions.php index 73084e5fa5..32abd70af7 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -67,7 +67,7 @@ function OUTPUT_HTML ($HTML, $NEW_LINE = true) { // Do we have HTML-Code here? if (!empty($HTML)) { // Yes, so we handle it as you have configured - switch (OUTPUT_MODE) + switch (constant('OUTPUT_MODE')) { case "render": // That's why you don't need any \n at the end of your HTML code... :-) @@ -97,7 +97,7 @@ function OUTPUT_HTML ($HTML, $NEW_LINE = true) { default: // Huh, something goes wrong or maybe you have edited config.php ??? - DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("Invalid renderer %s detected.", OUTPUT_MODE)); + DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("Invalid renderer %s detected.", constant('OUTPUT_MODE'))); mxchange_die("{!FATAL_ERROR!}: {!LANG_NO_RENDER_DIRECT!}"); break; } @@ -152,7 +152,7 @@ function OUTPUT_HTML ($HTML, $NEW_LINE = true) { // Output code here, DO NOT REMOVE! ;-) OUTPUT_RAW($OUTPUT); - } elseif ((OUTPUT_MODE == "render") && (!empty($OUTPUT))) { + } elseif ((constant('OUTPUT_MODE') == "render") && (!empty($OUTPUT))) { // Rewrite links when rewrite extension is active if ((EXT_IS_ACTIVE("rewrite")) && ($CSS != "1") && ($CSS != "-1")) { $OUTPUT = REWRITE_LINKS($OUTPUT); diff --git a/inc/install-inc.php b/inc/install-inc.php index c33ac6ed94..fb50b7134b 100644 --- a/inc/install-inc.php +++ b/inc/install-inc.php @@ -258,10 +258,10 @@ if ((!isBooleanConstantAndTrue('mxchange_installed')) || (!isBooleanConstantAndT @@ -403,7 +403,7 @@ if ((!isBooleanConstantAndTrue('mxchange_installed')) || (!isBooleanConstantAndT if (getTotalFatalErrors() > 0) { $OUT = ""; - foreach ($FATAL as $value) { + foreach ($FATAL as $value) { $OUT .= "
  • ".$value."
  • \n"; } // END foreach define('__FATAL_ERROR_LI', $OUT); -- 2.30.2