// 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... :-)
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("<strong>{!FATAL_ERROR!}:</strong> {!LANG_NO_RENDER_DIRECT!}");
break;
}
// 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);
<td>
<select name=\"omode\" size=\"1\" class=\"install_select\">
<option value=\"render\"");
- if (OUTPUT_MODE == "render") OUTPUT_HTML(" selected=\"selected\"");
+ if (constant('OUTPUT_MODE') == "render") OUTPUT_HTML(" selected=\"selected\"");
OUTPUT_HTML(">{!MODE_RENDER!}</option>
<option value=\"direct\"");
- if (OUTPUT_MODE == "direct") OUTPUT_HTML(" selected=\"selected\"");
+ if (constant('OUTPUT_MODE') == "direct") OUTPUT_HTML(" selected=\"selected\"");
OUTPUT_HTML(">{!MODE_DIRECT!}</option>
</select>
</td>
if (getTotalFatalErrors() > 0) {
$OUT = "";
- foreach ($FATAL as $value) {
+ foreach ($FATAL as $value) {
$OUT .= " <li>".$value."</li>\n";
} // END foreach
define('__FATAL_ERROR_LI', $OUT);