Code base synced
[mailer.git] / inc / classes / main / debug / class_DebugWebOutput.php
index c82bdd4f442ae7fe3f3046137d5cfffd9ba43f5c..433f68e8b66d3505b622dcb12ad2900217ce7d21 100644 (file)
@@ -4,9 +4,9 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
+ * @link               http://www.ship-simu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -30,12 +30,6 @@ class DebugWebOutput extends BaseFrameworkSystem implements Debugger, OutputStre
        protected function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
-
-               // Set description
-               $this->setObjectDescription("Debug output for webpages");
-
-               // Create an unique ID
-               $this->createUniqueID();
        }
 
        /**
@@ -58,7 +52,9 @@ class DebugWebOutput extends BaseFrameworkSystem implements Debugger, OutputStre
         * @return      void
         */
        public final function outputStream ($output) {
-               trigger_error($output);
+               // Strip out <br />
+               $output = str_replace("<br />", "", $output);
+               print(stripslashes($output)."<br />\n");
        }
 
        /**