More fixes for JS bug
[mailer.git] / inc / functions.php
index 56d8a184117263c2e6c825eeaa467b27bc550bcb..f2806f6b648279ee09bbe01fa3165063fd4b8e6b 100644 (file)
@@ -163,16 +163,14 @@ function OUTPUT_HTML($HTML, $NEW_LINE = true) {
 
 // Output the raw HTML code
 function OUTPUT_RAW ($HTML) {
-       if ((isBooleanConstantAndTrue('mxchange_installed')) && (basename($_SERVER['PHP_SELF']) != "install.php")) {
-               // Not in install-mode so strip slashes away
-               echo stripslashes($HTML);
-       } else {
-               // Output directly in install-mode
-               echo $HTML;
-       }
+       // Output stripped HTML code to avoid broken JavaScript code, etc.
+       echo stripslashes($HTML);
 
-       // Flush the output
-       flush();
+       // Flush the output if only _OB_CACHING is not "on"
+       if (_OB_CACHING != "on") {
+               // Flush it
+               flush();
+       }
 }
 
 // Add a fatal error message to the queue array