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:
authorBen Burgess <88810029+bx80@users.noreply.github.com>2022-10-14 11:18:02 +0300
committerGitHub <noreply@github.com>2022-10-14 11:18:02 +0300
commit57b60d9c9d5ab9fcff1c106210c9274d4a079022 (patch)
tree094caf893db31d88a154a164be0f1527a245d42a
parent3051798aa52f054c6105cea4c6ad651b8a120911 (diff)
Fix array to string conversion warning in userOptOut (#19858)
-rw-r--r--plugins/PrivacyManager/Controller.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/PrivacyManager/Controller.php b/plugins/PrivacyManager/Controller.php
index 189b0ae748..25296cb48d 100644
--- a/plugins/PrivacyManager/Controller.php
+++ b/plugins/PrivacyManager/Controller.php
@@ -130,7 +130,6 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
public function usersOptOut()
{
Piwik::checkUserHasSomeAdminAccess();
- $language = LanguagesManager::getLanguageCodeForCurrentUser();
$doNotTrackOptions = [
['key' => '1',
@@ -153,7 +152,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
}
return $this->renderTemplate('usersOptOut', [
- 'language' => $language,
+ 'language' => LanguagesManager::getLanguageCodeForCurrentUser(),
'currentLanguageCode' => LanguagesManager::getLanguageCodeForCurrentUser(),
'languageOptions' => $languageOptions,
'doNotTrackOptions' => $doNotTrackOptions,