X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/a793f57ef018e623cd2c5f66a68f839e131fed7d..fa5a6464a353a15a351e1e1853af007fb41dd4af:/lib/lang.php?ds=inline

diff --git a/lib/lang.php b/lib/lang.php
index 48e247c..3bdef6a 100644
--- a/lib/lang.php
+++ b/lib/lang.php
@@ -76,7 +76,7 @@ function t_in($string_id, $lang) {
 
 function t_get_raw_json($lang) {
     $filename = str_replace("-", "_", $lang);
-    if (preg_match('/[^A-Za-z_\w]/', $input)) {
+    if (preg_match('/[^A-Za-z_\w]/', $filename)) {
         return false;
     }
     $p = JIRAFEAU_ROOT . "lib/locales/$filename.json";