- The update of jquery caused an about with missing variable $this which is
[mailer.git] / inc / template-functions.php
index 8ec37cc2bdf207d25482bae1fd8df9c175a06ebd..929c99a3783b2df5dbc2bd542b20030c99bb61cd 100644 (file)
@@ -110,23 +110,32 @@ function outputHtml ($htmlCode, $newLine = true) {
                                        outputRawCode($htmlCode);
 
                                        // That's why you don't need any \n at the end of your HTML code... :-)
-                                       if ($newLine === true) print("\n");
+                                       if ($newLine === true) {
+                                               print("\n");
+                                       } // END - if
                                } else {
                                        // Render mode for old or lame servers...
                                        $GLOBALS['output'] .= $htmlCode;
 
                                        // That's why you don't need any \n at the end of your HTML code... :-)
-                                       if ($newLine === true) $GLOBALS['output'] .= "\n";
+                                       if ($newLine === true) {
+                                               $GLOBALS['output'] .= "\n";
+                                       } // END - if
                                }
                                break;
 
                        case 'direct':
                                // If we are switching from render to direct output rendered code
-                               if ((!empty($GLOBALS['output'])) && (getPhpCaching() != 'on')) { outputRawCode($GLOBALS['output']); $GLOBALS['output'] = ''; }
+                               if ((!empty($GLOBALS['output'])) && (getPhpCaching() != 'on')) {
+                                       outputRawCode($GLOBALS['output']);
+                                       $GLOBALS['output'] = '';
+                               } // END - if
 
                                // The same as above... ^
                                outputRawCode($htmlCode);
-                               if ($newLine === true) print("\n");
+                               if ($newLine === true) {
+                                       print("\n");
+                               } // END - if
                                break;
 
                        default:
@@ -323,7 +332,7 @@ function loadTemplate ($template, $return = false, $content = array(), $compileC
                                        // Prepare eval() command
                                        $GLOBALS['template_eval'][$template] = '$ret = "' . getColorSwitchCode($template) . compileCode(escapeQuotes($ret), false, true, true, $compileCode) . '";';
                                } elseif (substr($template, 0, 3) == 'js_') {
-                                       // JavaScripts don't like entities and timings
+                                       // JavaScripts don't like entities, dollar signs and timings
                                        $GLOBALS['template_eval'][$template] = '$ret = decodeEntities("' . compileRawCode(escapeJavaScriptQuotes($GLOBALS['tpl_content'][$template]), false, true, true, $compileCode) . '");';
                                } else {
                                        // Prepare eval() command, other output doesn't like entities, maybe