mirror of
https://github.com/BeitDina/AutoIndex.git
synced 2026-05-06 18:27:02 +02:00
Update Language.php
Request language via url
This commit is contained in:
committed by
GitHub
parent
afb868b700
commit
4865155415
@@ -110,7 +110,7 @@ class Language
|
||||
foreach ($pref as $lang => $q)
|
||||
{
|
||||
//replace line string to language file downscroll
|
||||
$lang = str_replace('-', '_', $lang);
|
||||
$lang = isset($_GET['lang']) ? str_replace('-', '_', $_GET['lang']) : str_replace('-', '_', $lang);
|
||||
if (file_exists(@realpath(PATH_TO_LANGUAGES . $lang . LANGUAGE_FILE_EXT)))
|
||||
{
|
||||
return $lang;
|
||||
@@ -168,4 +168,4 @@ class Language
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user