]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/output/class_WebOutput.php
Fixed
[core.git] / inc / classes / main / output / class_WebOutput.php
index ad5bd90bfd236a4b1fbf7b754d65f5571545d1ec..14b828334b11f6cf214faddd7a5beca134768f06 100644 (file)
@@ -5,7 +5,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007 - 2009 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -52,15 +52,16 @@ class WebOutput extends BaseFrameworkSystem implements OutputStreamer, Registera
                        $contentType = trim($contentType);
 
                        // Set the content type
+                       // @TODO Need to rewrite this to $requestInstance->addHeader()
                        if (!empty($contentType)) {
                                @header(sprintf("Content-type: %s",
                                        $contentType
                                ));
-                       }
+                       } // END - if
 
                        // Get a new instance and set it
                        self::$webInstance = new WebOutput();
-               }
+               } // END - if
 
                // Return instance
                return self::$webInstance;
@@ -83,7 +84,7 @@ class WebOutput extends BaseFrameworkSystem implements OutputStreamer, Registera
         *
         * @return      void
         */
-       public final function output ($outStream=false) {
+       public final function output ($outStream = false) {
                print(stripslashes($outStream));
        }
 }