X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/f950bd1463ad57d9b27b6f1fbdadecb775ea2513..196fff8e98e6615285ea2861755f870b1e135510:/lib/lang.php

diff --git a/lib/lang.php b/lib/lang.php
index 48e247c..bd7478c 100644
--- a/lib/lang.php
+++ b/lib/lang.php
@@ -1,7 +1,7 @@
 <?php
 /*
  *  Jirafeau, your web file repository
- *  Copyright (C) 2015  Jerome Jutteau <j.jutteau@gmail.com>
+ *  Copyright (C) 2015  Jerome Jutteau <jerome@jutteau.fr>
  *
  *  This program is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU Affero General Public License as
@@ -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";