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:
authorThomas Steur <thomas.steur@googlemail.com>2014-08-08 18:29:05 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-08-08 18:29:48 +0400
commit71013e7396ad59c3b227d90f8912c56c90251376 (patch)
tree72fd7ea380305c46ca2e12977f71a969ada4baea /core/Console.php
parent28c2f6b43040af76232f222ad052a4fd76f24755 (diff)
refs #5180 if --piwik-domain is not set use --url as host. I am not sure if I understand the problem fully but this should fix it I reckon
Diffstat (limited to 'core/Console.php')
-rw-r--r--core/Console.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Console.php b/core/Console.php
index 5822a74e72..1c81a1a9e6 100644
--- a/core/Console.php
+++ b/core/Console.php
@@ -110,6 +110,11 @@ class Console extends Application
protected function initPiwikHost(InputInterface $input)
{
$piwikHostname = $input->getParameterOption('--piwik-domain');
+
+ if (empty($piwikHostname)) {
+ $piwikHostname = $input->getParameterOption('--url');
+ }
+
$piwikHostname = UrlHelper::getHostFromUrl($piwikHostname);
Url::setHost($piwikHostname);
}