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:
authormattpiwik <matthieu.aubry@gmail.com>2009-02-26 23:08:23 +0300
committermattpiwik <matthieu.aubry@gmail.com>2009-02-26 23:08:23 +0300
commitefa760f10ea7f70ac758f94c7a070bafbc3e4793 (patch)
treee681993419b7e0202ef8c73cbdb93f5688750617 /core/Translate.php
parent19262c72bb64a28232bc9ac93f2c8e5f87d6f225 (diff)
fixing bug introduced in previous commit
git-svn-id: http://dev.piwik.org/svn/trunk@920 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Translate.php')
-rw-r--r--core/Translate.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/Translate.php b/core/Translate.php
index 5b61642372..87946e3416 100644
--- a/core/Translate.php
+++ b/core/Translate.php
@@ -145,7 +145,12 @@ function Piwik_Translate($index, $args = array())
}
if(isset($GLOBALS['Piwik_translations'][$index]))
{
- return vsprintf($GLOBALS['Piwik_translations'][$index], $args);
+ $string = $GLOBALS['Piwik_translations'][$index];
+ if(count($args) == 0) {
+ return $string;
+ } else {
+ return vsprintf($string, $args);
+ }
}
throw new Exception("Translation string '$index' not available.");
}