mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-07 16:32:15 +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) {
|
function fm_get_translations($tr) {
|
||||||
try {
|
try {
|
||||||
$content = @file_get_contents('translation.json');
|
$content = @file_get_contents('https://raw.githubusercontent.com/prasathmani/tinyfilemanager/master/translation.json');
|
||||||
if($content !== FALSE) {
|
if($content !== FALSE) {
|
||||||
$lng = json_decode($content, TRUE);
|
$lng = json_decode($content, TRUE);
|
||||||
global $lang_list;
|
global $lang_list;
|
||||||
|
|
Loading…
Reference in a new issue