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:
Diffstat (limited to 'plugins/Installation/Controller.php')
-rw-r--r--plugins/Installation/Controller.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/plugins/Installation/Controller.php b/plugins/Installation/Controller.php
index f201c15616..374acee4e3 100644
--- a/plugins/Installation/Controller.php
+++ b/plugins/Installation/Controller.php
@@ -280,8 +280,8 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
$email = $form->getSubmitValue('email');
$newsletterPiwikORG = $form->getSubmitValue('subscribe_newsletter_piwikorg');
- $newsletterPiwikPRO = $form->getSubmitValue('subscribe_newsletter_piwikpro');
- $this->registerNewsletter($email, $newsletterPiwikORG, $newsletterPiwikPRO);
+ $newsletterProfessionalServices = $form->getSubmitValue('subscribe_newsletter_professionalservices');
+ $this->registerNewsletter($email, $newsletterPiwikORG, $newsletterProfessionalServices);
$this->redirectToNextStep(__FUNCTION__);
} catch (Exception $e) {
@@ -301,6 +301,8 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
{
$this->checkPiwikIsNotInstalled();
+ ServerFilesGenerator::createFilesForSecurity();
+
$siteIdsCount = Access::doAsSuperUser(function () {
return count(APISitesManager::getInstance()->getAllSitesId());
});
@@ -426,6 +428,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
$view->addForm($form);
$view->showNextStep = false;
+ $view->linkToProfessionalServices = StaticContainer::get('Piwik\ProfessionalServices\Advertising')->getPromoUrlForProfessionalServices($medium = 'App_InstallationFinished');
$output = $view->render();
return $output;
@@ -713,16 +716,16 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
/**
* @param $email
* @param $newsletterPiwikORG
- * @param $newsletterPiwikPRO
+ * @param $newsletterProfessionalServices
*/
- protected function registerNewsletter($email, $newsletterPiwikORG, $newsletterPiwikPRO)
+ protected function registerNewsletter($email, $newsletterPiwikORG, $newsletterProfessionalServices)
{
$url = Config::getInstance()->General['api_service_url'];
$url .= '/1.0/subscribeNewsletter/';
$params = array(
'email' => $email,
'piwikorg' => $newsletterPiwikORG,
- 'piwikpro' => $newsletterPiwikPRO,
+ 'piwikpro' => $newsletterProfessionalServices,
'url' => Url::getCurrentUrlWithoutQueryString(),
'language' => StaticContainer::get('Piwik\Translation\Translator')->getCurrentLanguage(),
);
@@ -762,4 +765,5 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
return $result;
});
}
+
}