]> git.mxchange.org Git - core.git/commitdiff
getResponseTypeFromSystem() is now static.
authorRoland Haeder <roland@mxchange.org>
Tue, 24 Mar 2015 17:33:21 +0000 (18:33 +0100)
committerRoland Haeder <roland@mxchange.org>
Tue, 24 Mar 2015 17:33:21 +0000 (18:33 +0100)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/main/class_BaseFrameworkSystem.php

index e1f0d55fb45eef10e1124b9789d621785dbf9473..a294e8ee99a645c1a4db7a6834b205b7103e19c1 100644 (file)
@@ -1670,7 +1670,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                        // Try it
                        try {
                                // Get a debugger instance
-                               $debugInstance = DebugMiddleware::createDebugMiddleware(FrameworkConfiguration::getSelfInstance()->getConfigEntry('debug_' . $this->getResponseTypeFromSystem() . '_class'));
+                               $debugInstance = DebugMiddleware::createDebugMiddleware(FrameworkConfiguration::getSelfInstance()->getConfigEntry('debug_' . self::getResponseTypeFromSystem() . '_class'));
                        } catch (NullPointerException $e) {
                                // Didn't work, no instance there
                                exit('Cannot create debugInstance! Exception=' . $e->__toString() . ', message=' . $e->getMessage());
@@ -2223,7 +2223,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         *
         * @return      $responseType   Analyzed response type
         */
-       protected function getResponseTypeFromSystem () {
+       protected static function getResponseTypeFromSystem () {
                // Default is console
                $responseType = 'console';