Continued:
[core.git] / framework / main / classes / application / class_BaseApplication.php
index ea60fb1c889ed7be3c9e3299a810b7b88b87c70c..3a6f8e6aeb85bbc260b1be6861ec484b8f0fce07 100644 (file)
@@ -39,11 +39,8 @@ abstract class BaseApplication extends BaseFrameworkSystem {
                // Call parent constructor
                parent::__construct($className);
 
-               // Get registry instance
-               $registryInstance = GenericRegistry::getRegistry();
-
-               // Add this instance
-               $registryInstance->addInstance('application', $this);
+               // Set this instance as application instance
+               GenericRegistry::getRegistry()->addInstance('application', $this);
        }
 
 }