From: pk910 Date: Thu, 14 Feb 2013 07:34:05 +0000 (+0100) Subject: fixed ref loader X-Git-Url: http://git.pk910.de/?p=phpgitweb.git;a=commitdiff_plain;h=0b0c6134312c1bce0c4bab1709edf3fbd00ccd23 fixed ref loader --- diff --git a/htdocs/lib/ProjectLoader.class.php b/htdocs/lib/ProjectLoader.class.php index 8c0c131..a5ebd74 100644 --- a/htdocs/lib/ProjectLoader.class.php +++ b/htdocs/lib/ProjectLoader.class.php @@ -115,7 +115,7 @@ class ProjectLoader { private function getProjectRefsRecursive(&$project, $cref) { if ($dh = opendir($project['path'].'/'.$cref)) { while (($file = readdir($dh)) !== false) { - if($file == '.' || $file == '..') + if($file[0] == '.') continue; if(is_dir($project['path'].'/'.$cref.'/'.$file)) $this->getProjectRefsRecursive($project, $cref.'/'.$file);