diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-08 18:29:05 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-08 18:29:48 +0400 |
commit | 71013e7396ad59c3b227d90f8912c56c90251376 (patch) | |
tree | 72fd7ea380305c46ca2e12977f71a969ada4baea /core/Console.php | |
parent | 28c2f6b43040af76232f222ad052a4fd76f24755 (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.php | 5 |
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); } |