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-03-26 06:40:09 +0300
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-03-26 06:40:09 +0300
commitc5d8311f09acf147f0b7230d2dff73cb9b829ac0 (patch)
tree87cd2e4f577b940bfbbd45aef1e855d37f46d0f5 /plugins/UserCountry
parentd9307c25c4e38b7823afa835f4fdd86eda2ab47a (diff)
- renaming all constants that were not prefixed by PIWIK_ refs #632
Diffstat (limited to 'plugins/UserCountry')
-rw-r--r--plugins/UserCountry/functions.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/UserCountry/functions.php b/plugins/UserCountry/functions.php
index 4c882abaab..2b8a941cf9 100644
--- a/plugins/UserCountry/functions.php
+++ b/plugins/UserCountry/functions.php
@@ -2,14 +2,13 @@
function Piwik_getFlagFromCode($code)
{
- $path = 'plugins/UserCountry/flags/%s.png';
- $normalPath = sprintf($path, $code);
- $absolutePath = PIWIK_INCLUDE_PATH . "/" . $normalPath;
- if(!file_exists($absolutePath))
+ $path = PIWIK_INCLUDE_PATH . '/plugins/UserCountry/flags/%s.png';
+ $pathWithCode = sprintf($path, $code);
+ if(file_exists($pathWithCode))
{
- return sprintf($path, 'xx');
+ return $pathWithCode;
}
- return $normalPath;
+ return sprintf($path, 'xx');
}
function Piwik_ContinentTranslate($label)
@@ -18,7 +17,6 @@ function Piwik_ContinentTranslate($label)
{
return Piwik_Translate('General_Unknown');
}
-
return Piwik_Translate('UserCountry_continent_'. $label);
}