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:
authormatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-02-11 02:04:59 +0300
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-02-11 02:04:59 +0300
commit8d6946c521c32801aeba6ba1bf2e4d84cf09c147 (patch)
tree8ff26b8299eddbaf0dc1cd5b248cbcd5eb1fb7df /plugins/UserCountry
parent176d5c2461a7e3a5ff9ffcacb32fe55ba87f1681 (diff)
Diffstat (limited to 'plugins/UserCountry')
-rw-r--r--plugins/UserCountry/functions.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/UserCountry/functions.php b/plugins/UserCountry/functions.php
index b75d80a9b3..4c882abaab 100644
--- a/plugins/UserCountry/functions.php
+++ b/plugins/UserCountry/functions.php
@@ -2,12 +2,10 @@
function Piwik_getFlagFromCode($code)
{
- $path = PIWIK_INCLUDE_PATH . '/plugins/UserCountry/flags/%s.png';
-
- $normalPath = sprintf($path,$code);
-
- // flags not in the package !
- if(!file_exists($normalPath))
+ $path = 'plugins/UserCountry/flags/%s.png';
+ $normalPath = sprintf($path, $code);
+ $absolutePath = PIWIK_INCLUDE_PATH . "/" . $normalPath;
+ if(!file_exists($absolutePath))
{
return sprintf($path, 'xx');
}