Page MenuHomePhorge

D2122.1775545288.diff
No OneTemporary

Authored By
Unknown
Size
697 B
Referenced Files
None
Subscribers
None

D2122.1775545288.diff

diff --git a/lib/file_locale.php b/lib/file_locale.php
--- a/lib/file_locale.php
+++ b/lib/file_locale.php
@@ -77,6 +77,8 @@
array_unshift($langs, $_SESSION['env']['language']);
}
+ $fallback = null;
+
foreach (array_unique($langs) as $lang) {
$lang = explode(';', $lang);
$lang = $lang[0];
@@ -91,9 +93,14 @@
) {
return $alias;
}
+
+ // Fall back to just returning the language identifier for reuse by the editor
+ if (!$fallback) {
+ $fallback = $lang;
+ }
}
- return null;
+ return $fallback;
}
/**

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 7, 7:01 AM (4 h, 5 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18823012
Default Alt Text
D2122.1775545288.diff (697 B)

Event Timeline