mirror of
https://github.com/unraid/webgui.git
synced 2026-04-27 05:19:44 -05:00
New feature: Favorites
This commit is contained in:
@@ -74,13 +74,12 @@ $task = strtok($path,'/');
|
||||
if ($locale && $task=='Favorites') {
|
||||
foreach(['settings','tools'] as $more) {
|
||||
$text = "$docroot/languages/$locale/$more.txt";
|
||||
if (file_exists($text)) {
|
||||
// additional translations
|
||||
$store = "$docroot/languages/$locale/$more.dot";
|
||||
if (!file_exists($store)) file_put_contents($store,serialize(parse_lang_file($text)));
|
||||
file_put_contents('/tmp/lang',$store."\n",FILE_APPEND);
|
||||
$language = array_merge($language,unserialize(file_get_contents($store)));
|
||||
}
|
||||
if (!file_exists($text)) continue;
|
||||
// additional translations
|
||||
$store = "$docroot/languages/$locale/$more.dot";
|
||||
if (!file_exists($store)) file_put_contents($store,serialize(parse_lang_file($text)));
|
||||
file_put_contents('/tmp/lang',$store."\n",FILE_APPEND);
|
||||
$language = array_merge($language,unserialize(file_get_contents($store)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user