]> git.mxchange.org Git - lfdb2.git/commitdiff
getResponseTypeFromSystem() is now static.
authorRoland Haeder <roland@mxchange.org>
Tue, 24 Mar 2015 17:36:13 +0000 (18:36 +0100)
committerRoland Haeder <roland@mxchange.org>
Tue, 24 Mar 2015 18:20:35 +0000 (19:20 +0100)
Output system is now no longer initialized by loading a centralized
inc/output.php as this was a stupid idea and sometimes the same application
has a console and web part.

Signed-off-by: Roland Haeder <roland@mxchange.org>
application/lfdb2/class_ApplicationHelper.php
application/lfdb2/init.php
core

index 351672f61f7db6afe568d8099e348f4cf2a65de0..5d07e2854b77a2e00d42e8494423e61fb0f1ec9f 100644 (file)
@@ -159,8 +159,8 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
                } // END - if
 
                // Default response is console
-               $response = $this->getResponseTypeFromSystem();
-               $responseType = $this->getResponseTypeFromSystem();
+               $response = self::getResponseTypeFromSystem();
+               $responseType = self::getResponseTypeFromSystem();
 
                // Create a new request object
                $requestInstance = ObjectFactory::createObjectByName($this->convertToClassName($response) . 'Request');
index f6633447e46ddbbbce85883d697bf1a67934ed09..7f4120e3f165d908c2726e768c4bc749bb732108 100644 (file)
@@ -28,7 +28,7 @@
 $cfg = FrameworkConfiguration::getSelfInstance();
 
 // Initialize output system
-require($cfg->getConfigEntry('base_path') . 'inc/output.php');
+ApplicationHelper::createDebugInstance('ApplicationHelper');
 
 // This application needs a database connection then we have to simply include
 // the inc/database.php script
diff --git a/core b/core
index 87b2be57b63b6e923aab40e0fbba2ff86db88a86..a142fe5eeaaa17a434c80ea103088558157c43bb 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit 87b2be57b63b6e923aab40e0fbba2ff86db88a86
+Subproject commit a142fe5eeaaa17a434c80ea103088558157c43bb