summaryrefslogtreecommitdiffstats
path: root/application/libraries/contrib/langcheck.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-02-14 01:17:10 +0100
committerFlorian Pritz <bluewind@xinu.at>2012-02-14 01:17:10 +0100
commita635c931ff8aa79728d93a4835e06a75e8f90be8 (patch)
treeec99bc646bca4cd8d37e58378d07c1ebd1f0499f /application/libraries/contrib/langcheck.php
parent798a4824a2aa099de9eb05454ebb62b1522bee65 (diff)
bump geshi to 1.0.8.10
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/libraries/contrib/langcheck.php')
-rw-r--r--application/libraries/contrib/langcheck.php7
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);