mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-05-17 21:16:38 +02:00
Get languages file automatically
This commit is contained in:
parent
6a6eb8abec
commit
aa05c28a1f
|
@ -2525,7 +2525,7 @@ function fm_is_exclude_items($file) {
|
|||
*/
|
||||
function fm_get_translations($tr) {
|
||||
try {
|
||||
$content = @file_get_contents('translation.json');
|
||||
$content = @file_get_contents('https://raw.githubusercontent.com/prasathmani/tinyfilemanager/master/translation.json');
|
||||
if($content !== FALSE) {
|
||||
$lng = json_decode($content, TRUE);
|
||||
global $lang_list;
|
||||
|
|
Loading…
Reference in a new issue