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:
authorLukas Winkler <Findus23@users.noreply.github.com>2017-05-06 11:44:14 +0300
committerStefan Giehl <stefan@piwik.org>2017-05-06 11:44:14 +0300
commita4f8566d95c7c9c172f411c78c01e281ed5b34e6 (patch)
treeb32dd1271d212f625b5b9e2b5dfc5bf5ea9c9ac2 /plugins/DevicesDetection/functions.php
parent73568e7bcf03f8fe348fba11502f95a2778c9abc (diff)
Move old brand icons to piwik icons (#11635)
* move old brand icons to piwik icons * update submodule * fix some tests * update submodule * fix another test * Updates screenshots * update UI test screenshots * update system test files
Diffstat (limited to 'plugins/DevicesDetection/functions.php')
-rw-r--r--plugins/DevicesDetection/functions.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/DevicesDetection/functions.php b/plugins/DevicesDetection/functions.php
index 8aa6f312d3..663e3361e9 100644
--- a/plugins/DevicesDetection/functions.php
+++ b/plugins/DevicesDetection/functions.php
@@ -16,13 +16,12 @@ use DeviceDetector\Parser\Client\Browser AS BrowserParser;
function getBrandLogo($label)
{
+ $path = 'plugins/Morpheus/icons/dist/brand/%s.png';
$label = preg_replace("/[^a-z0-9_-]+/i", "_", $label);
- $path = dirname(__FILE__) . '/images/brand/' . $label . '.png';
- if (file_exists($path)) {
- return 'plugins/DevicesDetection/images/brand/' . $label . '.png';
- } else {
- return 'plugins/DevicesDetection/images/brand/Unknown.png';
+ if (!file_exists(PIWIK_INCLUDE_PATH . '/' . sprintf($path, $label))) {
+ $label = "unk";
}
+ return sprintf($path, $label);
}
function getBrowserFamilyFullName($label)