From bfc803ddc719494625656d4dbd2f661c213c7dfc Mon Sep 17 00:00:00 2001 From: Floorb <132411956+Neetpone@users.noreply.github.com> Date: Fri, 20 Aug 2021 16:23:03 -0400 Subject: [PATCH] Move langs folder --- includes/common.php | 4 ++-- {langs => includes/langs}/bg.php | 0 {langs => includes/langs}/br.php | 0 {langs => includes/langs}/de.php | 0 {langs => includes/langs}/en.php | 0 {langs => includes/langs}/es.php | 0 {langs => includes/langs}/fr.php | 0 {langs => includes/langs}/index.php | 0 {langs => includes/langs}/pl.php | 0 {langs => includes/langs}/ru.php | 0 10 files changed, 2 insertions(+), 2 deletions(-) rename {langs => includes/langs}/bg.php (100%) rename {langs => includes/langs}/br.php (100%) rename {langs => includes/langs}/de.php (100%) rename {langs => includes/langs}/en.php (100%) rename {langs => includes/langs}/es.php (100%) rename {langs => includes/langs}/fr.php (100%) rename {langs => includes/langs}/index.php (100%) rename {langs => includes/langs}/pl.php (100%) rename {langs => includes/langs}/ru.php (100%) diff --git a/includes/common.php b/includes/common.php index 096873d..a5b1993 100644 --- a/includes/common.php +++ b/includes/common.php @@ -134,8 +134,8 @@ $captcha_enabled = (bool)$captcha_config['enabled']; // Prevent a potential LFI (you never know :p) $lang_file = "${default_lang}.php"; -if (in_array($lang_file, scandir(__DIR__ . '/../langs/'))) { - require_once(__DIR__ . "/../langs/${lang_file}"); +if (in_array($lang_file, scandir(__DIR__ . '/langs/'))) { + require_once(__DIR__ . "/langs/${lang_file}"); } // Check if IP is banned diff --git a/langs/bg.php b/includes/langs/bg.php similarity index 100% rename from langs/bg.php rename to includes/langs/bg.php diff --git a/langs/br.php b/includes/langs/br.php similarity index 100% rename from langs/br.php rename to includes/langs/br.php diff --git a/langs/de.php b/includes/langs/de.php similarity index 100% rename from langs/de.php rename to includes/langs/de.php diff --git a/langs/en.php b/includes/langs/en.php similarity index 100% rename from langs/en.php rename to includes/langs/en.php diff --git a/langs/es.php b/includes/langs/es.php similarity index 100% rename from langs/es.php rename to includes/langs/es.php diff --git a/langs/fr.php b/includes/langs/fr.php similarity index 100% rename from langs/fr.php rename to includes/langs/fr.php diff --git a/langs/index.php b/includes/langs/index.php similarity index 100% rename from langs/index.php rename to includes/langs/index.php diff --git a/langs/pl.php b/includes/langs/pl.php similarity index 100% rename from langs/pl.php rename to includes/langs/pl.php diff --git a/langs/ru.php b/includes/langs/ru.php similarity index 100% rename from langs/ru.php rename to includes/langs/ru.php