From 5ef736693ff4d69aa4ef27dc40e26dc518270039 Mon Sep 17 00:00:00 2001 From: diosmosis Date: Mon, 6 Apr 2015 00:12:40 -0700 Subject: Fixing Installation UI tests. --- core/Config.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/Config.php') diff --git a/core/Config.php b/core/Config.php index d4a0f7f40c..905b8a378d 100644 --- a/core/Config.php +++ b/core/Config.php @@ -433,6 +433,15 @@ class Config extends Singleton public function &__get($name) { if (!$this->initialized) { + $this->initialized = true; + + // this is done lazily and not in __construct so Installation will properly be triggered. ideally, it should be + // done in __construct, but the exception that is thrown depends on Translator which depends on Config. the + // circular dependency causes problems. + if (!SettingsServer::isTrackerApiRequest()) { + $this->checkLocalConfigFound(); + } + $this->postConfigTestEvent(); } -- cgit v1.2.3