summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-04-12 12:28:25 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-04-17 11:14:03 +0200
commit46d0d0cda14df17df3392e8233388d54e0be97dd (patch)
tree94407f8e2a7209a2cc8a2306c14ce55f3e343640 /lib/private
parent63dfbb2127ec9a930778dd5d31b640c5f2cc3652 (diff)
downloadnextcloud-server-46d0d0cda14df17df3392e8233388d54e0be97dd.tar.gz
nextcloud-server-46d0d0cda14df17df3392e8233388d54e0be97dd.zip
fix appinfo parsing when a single localized option is provided
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/legacy/app.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index cabeed1d62d..88d5ce1f135 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -1004,6 +1004,11 @@ class OC_App {
}
protected static function findBestL10NOption(array $options, string $lang): string {
+ // only a single option
+ if (isset($options['@value'])) {
+ return $options['@value'];
+ }
+
$fallback = $similarLangFallback = $englishFallback = false;
$lang = strtolower($lang);