summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/util.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-12-08 12:28:41 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-12-08 12:28:41 +0100
commit8ffd4428bbe5791e5353bd9d60d0a3127adcb332 (patch)
tree40fb4a889778eb0a6d2d401dff5e2c72574c671e /lib/private/legacy/util.php
parent8e684f76e5d599917b52ddfd0ea1d58e31222487 (diff)
downloadnextcloud-server-8ffd4428bbe5791e5353bd9d60d0a3127adcb332.tar.gz
nextcloud-server-8ffd4428bbe5791e5353bd9d60d0a3127adcb332.zip
Fallback to "default" and check if directory exists
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/legacy/util.php')
-rw-r--r--lib/private/legacy/util.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php
index b9a7706eaf7..eb833862edc 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -389,7 +389,10 @@ class OC_Util {
$skeletonDirectory = str_replace('{lang}', substr($userLang, 0, $dialectStart), $plainSkeletonDirectory);
}
if ($dialectStart === false || !file_exists($skeletonDirectory)) {
- $skeletonDirectory = str_replace('{lang}', 'en', $plainSkeletonDirectory);
+ $skeletonDirectory = str_replace('{lang}', 'default', $plainSkeletonDirectory);
+ }
+ if (!file_exists($skeletonDirectory)) {
+ $skeletonDirectory = '';
}
}