'signatureEnableHtml' => $this->signatureEnableHtml
)),
'groups' => $this->groupIDs,
- 'languages' => $this->visibleLanguages,
+ 'languageIDs' => $this->visibleLanguages,
'options' => $saveOptions
);
$userEditor->addToGroups($groupIDs, false, $addDefaultGroups);
// insert visible languages
- $languageIDs = (isset($this->parameters['languages'])) ? $this->parameters['languages'] : array();
- $userEditor->addToLanguages($languageIDs, false);
+ if (!isset($this->parameters['languageIDs'])) {
+ // using the 'languages' key is deprecated since WCF 2.1, please use 'languageIDs' instead
+ $this->parameters['languageIDs'] = (!empty($this->parameters['languages'])) ? $this->parameters['languages'] : array();
+ }
+ $userEditor->addToLanguages($this->parameters['languageIDs'], false);
if (PACKAGE_ID) {
// set default notifications
'password' => $this->password,
)),
'groups' => $this->groupIDs,
- 'languages' => $this->visibleLanguages,
+ 'languageIDs' => $this->visibleLanguages,
'options' => $saveOptions,
'addDefaultGroups' => $addDefaultGroups
);