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:
authorThomas Steur <tsteur@users.noreply.github.com>2020-11-11 22:19:58 +0300
committerGitHub <noreply@github.com>2020-11-11 22:19:58 +0300
commit4039709af923620063f14adf1817015efc8da375 (patch)
treeee8918b713c2075104d13bbadd1ddd89cf809de2
parent744805959c832e77cd12e1b8ee75e09c0ce1d4a7 (diff)
Better anonymising of data (#16697)
-rw-r--r--core/Twig.php7
1 files changed, 0 insertions, 7 deletions
diff --git a/core/Twig.php b/core/Twig.php
index 70b206070e..22c9b6fb81 100644
--- a/core/Twig.php
+++ b/core/Twig.php
@@ -455,13 +455,6 @@ class Twig
if (SettingsPiwik::isMatomoInstalled()) {
$string = str_replace(SettingsPiwik::getPiwikUrl(), '$MATOMO_URL', $string);
$string = str_replace(SettingsPiwik::getSalt(), '$MATOMO_SALT', $string);
-
- $config = Config::getInstance();
- $db = $config->database;
- $string = str_replace($db['username'], '$DB_USERNAME', $string);
- $string = str_replace($db['password'], '$DB_PASSWORD', $string);
- $string = str_replace($db['host'], '$DB_HOST', $string);
- $string = str_replace($db['dbname'], '$DB_NAME', $string);
}
return $string;
});