diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2009-03-23 05:41:16 +0300 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2009-03-23 05:41:16 +0300 |
commit | 2179104fb86c8a4c75d160b907a15409f323a91a (patch) | |
tree | 057601bd4ce1e11d7da01453b9ab1ddcb031ee8d /core/Translate.php | |
parent | 13d71196029b7435f626a065192b6e5bda4799e4 (diff) |
- improved installation code, increased security checks & feedback to user, in case user tries to install and conflicting tables are already found in the DB
- fixed #612 Error when no sites configured
- fixed Base table or view not found doesn't exist piwik_option bug that was submitted by several users
git-svn-id: http://dev.piwik.org/svn/trunk@1006 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Translate.php')
-rw-r--r-- | core/Translate.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/Translate.php b/core/Translate.php index b56a85afa3..be3f06531f 100644 --- a/core/Translate.php +++ b/core/Translate.php @@ -150,9 +150,12 @@ function Piwik_Translate($index, $args = array()) if(isset($GLOBALS['Piwik_translations'][$index])) { $string = $GLOBALS['Piwik_translations'][$index]; - if(count($args) == 0) { + if(count($args) == 0) + { return $string; - } else { + } + else + { return vsprintf($string, $args); } } |