Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When installer is disabled and any module is requested, also show the not set up yet message #14628

Merged
merged 2 commits into from Jul 16, 2019

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Jul 5, 2019

Expected (already working when requesting https://analytics.domain.com )

image

but doesn't work when eg requesting https://analytics.domain.com/index.php?module=API&action=home&idSite=1&period=day&date=yesterday

which was showing eg this

image

Adding another check for this case when a module is specified... In the past we didn't want find a need to fix it but it's easy to do. A test for this special case shouldn't be needed.

@tsteur tsteur added the Needs Review PRs that need a code review label Jul 5, 2019
@tsteur tsteur added this to the 3.11.0 milestone Jul 5, 2019
@@ -75,6 +76,12 @@ private function checkConfigFileExists($path, $startInstaller = false)
return;
}

$general = Config::getInstance()->General;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it work to access this here? This could be called before StaticContainer is initialized. Might be better to use $this->settingsProvider.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@diosmosis done. It worked with the config as well but this way I suppose it is better 👍

@diosmosis diosmosis merged commit 417c91f into 3.x-dev Jul 16, 2019
@diosmosis diosmosis deleted the enableinstallermodule branch July 16, 2019 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants