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/Provider/functions.php')
-rw-r--r--plugins/Provider/functions.php15
1 files changed, 3 insertions, 12 deletions
diff --git a/plugins/Provider/functions.php b/plugins/Provider/functions.php
index 110b54a359..3e2c4a2da8 100644
--- a/plugins/Provider/functions.php
+++ b/plugins/Provider/functions.php
@@ -20,12 +20,9 @@ use Piwik\Piwik;
*/
function getHostnameName($in)
{
- if (empty($in)) {
+ if (empty($in) || strtolower($in) === 'ip') {
return Piwik::translate('General_Unknown');
}
- if (strtolower($in) === 'ip') {
- return "IP";
- }
if (($positionDot = strpos($in, '.')) !== false) {
return ucfirst(substr($in, 0, $positionDot));
}
@@ -40,14 +37,8 @@ function getHostnameName($in)
*/
function getHostnameUrl($in)
{
- if ($in == DataTable::LABEL_SUMMARY_ROW) {
- return false;
- }
- if (empty($in)
- || strtolower($in) === 'ip'
- ) {
- // link to "what does 'IP' mean?"
- return "http://piwik.org/faq/general/#faq_52";
+ if ($in == DataTable::LABEL_SUMMARY_ROW || empty($in) || strtolower($in) === 'ip') {
+ return null;
}
// if the name looks like it can be used in a URL, use it in one, otherwise link to startpage