// Default: true
function isTemplateHtml () {
// Is the output_mode other than 0 (HTML), then no comments are enabled
- if (getOutputMode() != 0) {
+ if (getScriptOutputMode() != 0) {
// No HTML
return false;
} else {
// Do we have HTML-Code here?
if (!empty($htmlCode)) {
// Yes, so we handle it as you have configured
- switch (getCachedOutputMode()) {
+ switch (getOutputMode()) {
case 'render':
// That's why you don't need any \n at the end of your HTML code... :-)
if (getPhpCaching() == 'on') {
// Output code here, DO NOT REMOVE! ;-)
outputRawCode($GLOBALS['output']);
- } elseif ((getCachedOutputMode() == 'render') && (!empty($GLOBALS['output']))) {
+ } elseif ((getOutputMode() == 'render') && (!empty($GLOBALS['output']))) {
// Send all HTTP headers
sendHttpHeaders();
$GLOBALS['output'] = doFinalCompilation($GLOBALS['output']);
// Extension 'rewrite' installed?
- if ((isExtensionActive('rewrite')) && (getOutputMode() != 1)) {
+ if ((isExtensionActive('rewrite')) && (getScriptOutputMode() != 1)) {
$GLOBALS['output'] = rewriteLinksInCode($GLOBALS['output']);
} // END - if
$ret = '';
if ((strpos($GLOBALS['tpl_content'], '$') !== false) || (strpos($GLOBALS['tpl_content'], '{--') !== false) || (strpos($GLOBALS['tpl_content'], '{?') !== false) || (strpos($GLOBALS['tpl_content'], '{%') !== false)) {
// Normal HTML output?
- if (getOutputMode() == '0') {
+ if (getScriptOutputMode() == '0') {
// Add surrounding HTML comments to help finding bugs faster
$ret = '<!-- Template ' . $template . ' - Start //-->' . $GLOBALS['tpl_content'] . '<!-- Template ' . $template . ' - End //-->';