diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-09-30 15:55:33 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-09-30 16:05:47 +0400 |
commit | 6b20a983ecb852356a3658aaa4042e31182cb0c2 (patch) | |
tree | 211245af1cf33fbcc9557b3fef467384f0572760 /plugins/Installation/Installation.php | |
parent | 494d826ab4874ea85d55ce7e47b432abe35a4a5d (diff) |
Refactoring the code so that base.css is not required to be manually built but is compiled on each page view which should be fast enough
Diffstat (limited to 'plugins/Installation/Installation.php')
-rw-r--r-- | plugins/Installation/Installation.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Installation/Installation.php b/plugins/Installation/Installation.php index 16fd18bc5e..d7878d40fa 100644 --- a/plugins/Installation/Installation.php +++ b/plugins/Installation/Installation.php @@ -63,7 +63,10 @@ class Installation extends \Piwik\Plugin $step = Common::getRequestVar('action', 'welcome', 'string'); $controller = $this->getInstallationController(); - if (in_array($step, array_keys($controller->getInstallationSteps())) || $step == 'saveLanguage') { + $isActionWhiteListed = in_array($step, array( 'saveLanguage', 'getBaseCss')); + if (in_array($step, array_keys($controller->getInstallationSteps())) + || $isActionWhiteListed + ) { $controller->$step($message); } else { Piwik::exitWithErrorMessage(Piwik_Translate('Installation_NoConfigFound')); |