From: dj3c1t Date: Fri, 21 Dec 2012 19:35:00 +0000 (+0100) Subject: correction liste template X-Git-Tag: mtweb.0.6.2~3 X-Git-Url: http://git.dj3c1t.com/?p=mtweb;a=commitdiff_plain;h=eefcb5168f6353f56399fd6fa594e2b221d43e5d correction liste template --- diff --git a/mw/env/modules/mw_env_out.php b/mw/env/modules/mw_env_out.php index 00f4a84..e61b8cc 100644 --- a/mw/env/modules/mw_env_out.php +++ b/mw/env/modules/mw_env_out.php @@ -52,7 +52,7 @@ function _out_pathes($out_dir, $pathes = array()){ if($dh = opendir($out_dir)){ while(($file = readdir($dh)) !== false){ - if(is_dir($out_dir.$file) && substr($file, 0 ,1) != ".") $pathes[] = $file; + if(is_dir($out_dir.$file) && substr($file, 0 ,1) != "." && !in_array($file, $pathes)) $pathes[] = $file; } closedir($dh); }