diff options
Diffstat (limited to 'application/libraries/contrib/langcheck.php')
-rw-r--r-- | application/libraries/contrib/langcheck.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/application/libraries/contrib/langcheck.php b/application/libraries/contrib/langcheck.php index a4ee4f65f..7ca8229e5 100644 --- a/application/libraries/contrib/langcheck.php +++ b/application/libraries/contrib/langcheck.php @@ -8,7 +8,7 @@ * CLI mode is supported * * @author Benny Baumann - * @version $Id: langcheck.php 2174 2009-09-10 09:17:40Z benbe $ + * @version $Id: langcheck.php 2345 2010-08-29 11:12:44Z benbe $ */ header('Content-Type: text/html; charset=utf-8'); @@ -246,10 +246,13 @@ if(!$error_abort) { if(!$error_abort) { while ($file = readdir($dir)) { - if (!$file || $file[0] == '.' || strpos($file, '.') === false) { + if (!$file || $file[0] == '.' || strpos($file, '.php') === false) { continue; } $lang = substr($file, 0, strpos($file, '.')); + if(4 != strlen($file) - strlen($lang)) { + continue; + } $languages[] = $lang; } closedir($dir); |