1
0
Fork 0
mirror of https://github.com/Findus23/plugin-LanguageToogle.git synced 2024-09-18 14:33:45 +02:00

0.3.5: fix typo

This commit is contained in:
Lukas Winkler 2022-02-20 23:13:52 +01:00
parent c48ba509be
commit c961741e41
Signed by: lukas
GPG key ID: 54DE4D798D244853
3 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
## Changelog
### 0.3.5
fix typo in 0.3.4
### 0.3.4
add workaround for bug in Matomo 4.7.0 and 4.7.1

View file

@ -21,7 +21,7 @@ class Controller extends \Piwik\Plugin\Controller
$lang = Common::getRequestVar("lang");
$returnModule = Common::getRequestVar("returnModule");
$returnAction = Common::getRequestVar("returnAction");
LanguagesManager::setLanguageForSession("");
LanguagesManager::setLanguageForSession($lang);
if (Version::VERSION == '4.7.1' || Version::VERSION == '4.7.0') {
APILanguagesManager::getInstance()->setLanguageForUser(Piwik::getCurrentUserLogin(), $lang);
}

View file

@ -1,7 +1,7 @@
{
"name": "LanguageToogle",
"description": "Quickly change the language of Matomo",
"version": "0.3.4",
"version": "0.3.5",
"theme": false,
"require": {
"piwik": ">=4.0.0-b1,<5.0.0-b1"