mirror of
https://github.com/Findus23/plugin-LanguageToogle.git
synced 2024-09-10 05:13:46 +02:00
parent
c961741e41
commit
b8a702b841
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@ class UserSettings extends \Piwik\Settings\Plugin\UserSettings
|
|||
public $availableLanguages;
|
||||
|
||||
protected function init() {
|
||||
if (Piwik::hasUserSuperUserAccess()) {
|
||||
return;
|
||||
}
|
||||
$this->availableLanguages = $this->createAvailableLanguagesSetting();
|
||||
if (!empty($this->availableLanguages->getValue()) && gettype($this->availableLanguages->getValue()[0]) == "string") {
|
||||
$this->availableLanguages->setValue([]);
|
||||
|
|
Loading…
Reference in a new issue