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>2016-10-31 02:20:25 +0300
committermattab <matthieu.aubry@gmail.com>2016-10-31 02:20:25 +0300
commit395d447052b81ed98b7840df863ec183ed1e285d (patch)
tree90f8ea0cf3c385451a3ccb179f51ea36bb23dd3c
parentf656aec54870ba1ce690bcd589693dee70be789b (diff)
Better text + https link
-rw-r--r--core/Tracker/Response.php2
-rw-r--r--tests/PHPUnit/Integration/TrackerTest.php2
-rwxr-xr-xtests/PHPUnit/System/TrackerResponseTest.php4
-rw-r--r--tests/PHPUnit/Unit/Tracker/ResponseTest.php2
4 files changed, 5 insertions, 5 deletions
diff --git a/core/Tracker/Response.php b/core/Tracker/Response.php
index bf8c6f9955..7927666511 100644
--- a/core/Tracker/Response.php
+++ b/core/Tracker/Response.php
@@ -78,7 +78,7 @@ class Response
Common::sendResponseCode(400);
}
Common::printDebug("Empty request => Piwik page");
- echo "<a href='/'>Piwik</a> is a free/libre web <a href='http://piwik.org'>analytics</a> that lets you keep control of your data.";
+ echo "This resource is part of Piwik. Keep full control of your data with the leading free and open source <a href='https://piwik.org' target='_blank'>digital analytics platform</a> for web and mobile.";
} else {
$this->outputApiResponse($tracker);
Common::printDebug("Nothing to notice => default behaviour");
diff --git a/tests/PHPUnit/Integration/TrackerTest.php b/tests/PHPUnit/Integration/TrackerTest.php
index 148bf622df..13b3821bc4 100644
--- a/tests/PHPUnit/Integration/TrackerTest.php
+++ b/tests/PHPUnit/Integration/TrackerTest.php
@@ -251,7 +251,7 @@ class TrackerTest extends IntegrationTestCase
$response = $this->tracker->main($this->getDefaultHandler(), $requestSet);
- $expected = "<a href='/'>Piwik</a> is a free/libre web <a href='http://piwik.org'>analytics</a> that lets you keep control of your data.";
+ $expected = "This resource is part of Piwik. Keep full control of your data with the leading free and open source <a href='https://piwik.org' target='_blank'>digital analytics platform</a> for web and mobile.";
$this->assertEquals($expected, $response);
}
diff --git a/tests/PHPUnit/System/TrackerResponseTest.php b/tests/PHPUnit/System/TrackerResponseTest.php
index 337aceb30c..05f6b749c3 100755
--- a/tests/PHPUnit/System/TrackerResponseTest.php
+++ b/tests/PHPUnit/System/TrackerResponseTest.php
@@ -101,7 +101,7 @@ class TrackerResponseTest extends SystemTestCase
$url = Fixture::getTrackerUrl();
$this->assertResponseCode(200, $url);
- $expected = "<a href='/'>Piwik</a> is a free/libre web <a href='http://piwik.org'>analytics</a> that lets you keep control of your data.";
+ $expected = "This resource is part of Piwik. Keep full control of your data with the leading free and open source <a href='https://piwik.org' target='_blank'>digital analytics platform</a> for web and mobile.";
$this->assertHttpResponseText($expected, $url);
}
@@ -110,7 +110,7 @@ class TrackerResponseTest extends SystemTestCase
$url = Fixture::getTrackerUrl();
$this->assertResponseCode(400, $url . '?rec=1');
- $expected = "<a href='/'>Piwik</a> is a free/libre web <a href='http://piwik.org'>analytics</a> that lets you keep control of your data.";
+ $expected = "This resource is part of Piwik. Keep full control of your data with the leading free and open source <a href='https://piwik.org' target='_blank'>digital analytics platform</a> for web and mobile.";
$this->assertHttpResponseText($expected, $url);
}
diff --git a/tests/PHPUnit/Unit/Tracker/ResponseTest.php b/tests/PHPUnit/Unit/Tracker/ResponseTest.php
index 4d902ada08..597ee513db 100644
--- a/tests/PHPUnit/Unit/Tracker/ResponseTest.php
+++ b/tests/PHPUnit/Unit/Tracker/ResponseTest.php
@@ -127,7 +127,7 @@ class ResponseTest extends \PHPUnit_Framework_TestCase
$tracker->setCountOfLoggedRequests(0);
$this->response->outputResponse($tracker);
- $this->assertEquals("<a href='/'>Piwik</a> is a free/libre web <a href='http://piwik.org'>analytics</a> that lets you keep control of your data.",
+ $this->assertEquals("This resource is part of Piwik. Keep full control of your data with the leading free and open source <a href='https://piwik.org' target='_blank'>digital analytics platform</a> for web and mobile.",
$this->response->getOutput());
}