Move langs folder

This commit is contained in:
Floorb 2021-08-20 16:23:03 -04:00
parent 2b67a19013
commit bfc803ddc7
10 changed files with 2 additions and 2 deletions

View file

@ -134,8 +134,8 @@ $captcha_enabled = (bool)$captcha_config['enabled'];
// Prevent a potential LFI (you never know :p) // Prevent a potential LFI (you never know :p)
$lang_file = "${default_lang}.php"; $lang_file = "${default_lang}.php";
if (in_array($lang_file, scandir(__DIR__ . '/../langs/'))) { if (in_array($lang_file, scandir(__DIR__ . '/langs/'))) {
require_once(__DIR__ . "/../langs/${lang_file}"); require_once(__DIR__ . "/langs/${lang_file}");
} }
// Check if IP is banned // Check if IP is banned