aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/L10N
diff options
context:
space:
mode:
authorc39cfbb3 <145777845+c39cfbb3@users.noreply.github.com>2023-10-15 00:33:42 +0800
committerFerdinand Thiessen <opensource@fthiessen.de>2023-10-18 02:33:54 +0200
commit1bf15da86343b8213a8554fcf3cda78a9000b455 (patch)
tree2489f68d9737acf3d788c85030db43c55bcda3ff /lib/private/L10N
parentf7cd3d17b8cd41ec8cfb867b1404c0ac452a2c80 (diff)
downloadnextcloud-server-1bf15da86343b8213a8554fcf3cda78a9000b455.tar.gz
nextcloud-server-1bf15da86343b8213a8554fcf3cda78a9000b455.zip
Update lib/private/L10N/Factory.php
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: c39cfbb3 <145777845+c39cfbb3@users.noreply.github.com>
Diffstat (limited to 'lib/private/L10N')
-rw-r--r--lib/private/L10N/Factory.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/L10N/Factory.php b/lib/private/L10N/Factory.php
index 7361ab1a9dd..6de620e7ec7 100644
--- a/lib/private/L10N/Factory.php
+++ b/lib/private/L10N/Factory.php
@@ -495,7 +495,7 @@ class Factory implements IFactory {
if ($preferred_language === strtolower($available_language)) {
return $this->respectDefaultLanguage($app, $available_language);
}
- if ($preferred_language_parts[0].'_'.$preferred_language_parts[count($preferred_language_parts) - 1] === strtolower($available_language)) {
+ if ($preferred_language_parts[0].'_'.end($preferred_language_parts) === strtolower($available_language)) {
return $available_language;
}
}