mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Bugfix: Nextcloud FilterLanguage wrong param order #1352
This commit is contained in:
parent
f47b77347d
commit
f490c53919
1 changed files with 4 additions and 8 deletions
|
|
@ -4,8 +4,8 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
const
|
const
|
||||||
NAME = 'Nextcloud',
|
NAME = 'Nextcloud',
|
||||||
VERSION = '2.26',
|
VERSION = '2.27',
|
||||||
RELEASE = '2023-12-08',
|
RELEASE = '2023-12-11',
|
||||||
CATEGORY = 'Integrations',
|
CATEGORY = 'Integrations',
|
||||||
DESCRIPTION = 'Integrate with Nextcloud v20+',
|
DESCRIPTION = 'Integrate with Nextcloud v20+',
|
||||||
REQUIRED = '2.27.0';
|
REQUIRED = '2.27.0';
|
||||||
|
|
@ -245,14 +245,10 @@ class NextcloudPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function FilterLanguage($bAdmin, &$sLanguage) : void
|
public function FilterLanguage(&$sLanguage, $bAdmin) : void
|
||||||
{
|
{
|
||||||
if (!\RainLoop\Api::Config()->Get('webmail', 'allow_languages_on_settings', true)) {
|
if (!\RainLoop\Api::Config()->Get('webmail', 'allow_languages_on_settings', true)) {
|
||||||
$sLanguage = \RainLoop\Api::Actions()->ValidateLanguage(
|
$sLanguage = \strtr(\OC::$server->getL10N('core')->getLocaleCode(), '_', '-');
|
||||||
\OC::$server->getL10N('core')->getLocaleCode(),
|
|
||||||
$sLanguage,
|
|
||||||
$bAdmin
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue