Added new general I/O stream classes and interfaces. Still the interfaces have no...
[core.git] / inc / classes / main / output / class_ConsoleOutput.php
index 9c21c444d73114207513ab69b8914fe56f15a7cd..38379b289eb857a1c9c713604b6240641a0a165f 100644 (file)
@@ -70,10 +70,13 @@ class ConsoleOutput extends BaseFrameworkSystem implements OutputStreamer {
         * @return      $consoleInstance        An instance of this class
         */
        public static final function getInstance() {
+               // Is the self-instance already set?
                if (is_null(self::$consoleInstance)) {
                        $contentType = FrameworkConfiguration::getInstance()->getConfigEntry('web_content_type');
                        self::$consoleInstance = ConsoleOutput::createConsoleOutput($contentType);
-               }
+               } // END - if
+
+               // Return the instance
                return self::$consoleInstance;
        }