diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-11-14 06:45:35 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-11-14 06:45:35 +0300 |
commit | a91388d2b1b3c60733ce19f35a4675a1ba6467df (patch) | |
tree | 77256a0a24b6085541d73ba19f277fe88a7d0866 /core/Translate.php | |
parent | c7295c121b94489edf2800c6b220ee86e7b4c496 (diff) |
Replaced usage of deprecated Common::json_encode to json_encode
Diffstat (limited to 'core/Translate.php')
-rw-r--r-- | core/Translate.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Translate.php b/core/Translate.php index 65381c0a2d..c29d0f0339 100644 --- a/core/Translate.php +++ b/core/Translate.php @@ -173,7 +173,7 @@ class Translate $clientSideTranslations[$key] = $translations[$plugin][$stringName]; } - $js = 'var translations = ' . Common::json_encode($clientSideTranslations) . ';'; + $js = 'var translations = ' . json_encode($clientSideTranslations) . ';'; $js .= "\n" . 'if (typeof(piwik_translations) == \'undefined\') { var piwik_translations = new Object; }' . 'for(var i in translations) { piwik_translations[i] = translations[i];} '; return $js; |