diff options
author | Ben Burgess <88810029+bx80@users.noreply.github.com> | 2022-10-14 11:18:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-14 11:18:02 +0300 |
commit | 57b60d9c9d5ab9fcff1c106210c9274d4a079022 (patch) | |
tree | 094caf893db31d88a154a164be0f1527a245d42a /plugins | |
parent | 3051798aa52f054c6105cea4c6ad651b8a120911 (diff) |
Fix array to string conversion warning in userOptOut (#19858)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/PrivacyManager/Controller.php | 3 |
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, |