// Installer can be translated at /install-dev/dev/translate.php

This commit is contained in:
Damien Metzger
2013-02-27 12:13:38 +01:00
parent cf249aa2dc
commit 52435c2fad
10 changed files with 341 additions and 241 deletions
+2 -2
View File
@@ -2232,7 +2232,7 @@ exit;
$filtered_files = array();
$real_ext = '';
$real_ext = false;
if (!empty($ext))
$real_ext = '.'.$ext;
$real_ext_length = strlen($real_ext);
@@ -2240,7 +2240,7 @@ exit;
$subdir = ($dir) ? $dir.'/' : '';
foreach ($files as $file)
{
if (strpos($file, $real_ext) && strpos($file, $real_ext) == (strlen($file) - $real_ext_length))
if (!$real_ext || (strpos($file, $real_ext) && strpos($file, $real_ext) == (strlen($file) - $real_ext_length)))
$filtered_files[] = $subdir.$file;
if ($recursive && $file[0] != '.' && is_dir($real_path.$file))