Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-12-22 01:25:37 +0300
committermattab <matthieu.aubry@gmail.com>2014-12-22 01:27:44 +0300
commite9fdfd09efa8fca315bba07fd46d25e68854933f (patch)
treee242688cd0a12722669401de1c4405cdefb8ee62 /plugins/Installation/Controller.php
parent5ac0f38bcbf9be70a70adc4dec63f9c676ce9e23 (diff)
Fixes #6884 - simply fail when Piwik is already installed to prevent other issues
Diffstat (limited to 'plugins/Installation/Controller.php')
-rw-r--r--plugins/Installation/Controller.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/plugins/Installation/Controller.php b/plugins/Installation/Controller.php
index 9d6244a63c..bf6920dffc 100644
--- a/plugins/Installation/Controller.php
+++ b/plugins/Installation/Controller.php
@@ -78,26 +78,20 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
* Installation Step 1: Welcome
*
* Can also display an error message when there is a failure early (eg. DB connection failed)
- *
- * @param string Optional error message
*/
- function welcome($message = false)
+ function welcome()
{
// Delete merged js/css files to force regenerations based on updated activated plugin list
Filesystem::deleteAllCacheOnUpdate();
- if (empty($message)) {
- $this->checkPiwikIsNotInstalled();
- }
+ $this->checkPiwikIsNotInstalled();
$view = new View(
'@Installation/welcome',
$this->getInstallationSteps(),
__FUNCTION__
);
- $view->newInstall = !SettingsPiwik::isPiwikInstalled();
- $view->errorMessage = $message;
- $view->showNextStep = $view->newInstall;
+ $view->showNextStep = true;
return $view->render();
}