]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/class_BaseFrameworkSystem.php
Stricter check
[core.git] / inc / classes / main / class_BaseFrameworkSystem.php
index 967db1af2ceeb4eadee1e072f1805eee2f3a9611..9f5ede14c4ff00a36c0aeffe0044b249a3f38345 100644 (file)
@@ -276,7 +276,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                        $this->setDebugInstance(DebugMiddleware::createDebugMiddleware($this->getConfigInstance()->readConfig('debug_class')));
 
                        // Get output instance and set it
-                       $outputInstance = ObjectFactory::createObjectByConfiguredName('web_engine', array($this->getConfigInstance()->readConfig('web_content_type')));
+                       $outputInstance = ObjectFactory::createObjectByConfiguredName('output_class', array($this->getConfigInstance()->readConfig('web_content_type')));
                        $this->setWebOutputInstance($outputInstance);
 
                        // Set the compressor channel
@@ -860,7 +860,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                        if ($doPrint === false) die(); // Die here if not printed
                } else {
                        // Put directly out
-                       if ($doPrint) {
+                       if ($doPrint === true) {
                                print($message);
                        } else {
                                // DO NOT REWRITE THIS TO app_die() !!!