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:
authorMatthieu Aubry <mattab@users.noreply.github.com>2016-07-25 01:37:29 +0300
committerGitHub <noreply@github.com>2016-07-25 01:37:29 +0300
commit755dcf042d201810cbe07e90f74c84a3777f46d6 (patch)
tree02e5d500f25eb31193bad3d8e2bc3fea084f383b /plugins/Installation/Controller.php
parente5b8e0973b76cf63fd9ad53d6b0095135dc439c8 (diff)
Professional Services for Piwik, neutral branding within Piwik app (#10339)
Professional Services for Piwik - neutral branding within Piwik app
Diffstat (limited to 'plugins/Installation/Controller.php')
-rw-r--r--plugins/Installation/Controller.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/Installation/Controller.php b/plugins/Installation/Controller.php
index e91ab0355c..f75477f659 100644
--- a/plugins/Installation/Controller.php
+++ b/plugins/Installation/Controller.php
@@ -279,8 +279,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) {
@@ -425,6 +425,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;
@@ -670,16 +671,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(),
);