]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/debug/class_DebugConsoleOutput.php
Fix for wrong method call
[core.git] / inc / classes / main / debug / class_DebugConsoleOutput.php
index 16e8dfa80435ad8ec351be442f000f655b5d5706..1c04fd784a1298f8157f741e6ea7534d19f520f5 100644 (file)
@@ -52,9 +52,9 @@ class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, Output
         * @param       $stripTags      Whether HTML tags shall be stripped out
         * @return      void
         */
-       public final function outputStream ($output, $stripTags = false) {
+       public final function outputStream ($output, $stripTags = FALSE) {
                // Strip HTML tags out?
-               if ($stripTags === true) {
+               if ($stripTags === TRUE) {
                        // Prepare the output without HTML tags
                        $output = trim(html_entity_decode(strip_tags(stripslashes($output))));
                } else {
@@ -79,9 +79,9 @@ class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, Output
         * @param       $stripTags      Whether HTML tags shall be stripped out
         * @return      void
         */
-       public final function output ($outStream = false, $stripTags = false) {
+       public final function output ($outStream = FALSE, $stripTags = FALSE) {
                // Empty output will be silently ignored
-               if ($outStream !== false) {
+               if ($outStream !== FALSE) {
                        $this->outputStream($outStream, $stripTags);
                } // END - if
        }
@@ -94,7 +94,7 @@ class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, Output
         * @throws      UnsupportedOperationException   If this method is called
         */
        public function streamData ($data) {
-               $this->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.');
+               self::createDebugInstance(__CLASS__)->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.');
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 }