No need to pull the projectroot from the config again in the project directory lister
No need to pull the projectroot from the config again in the project directory lister

--- a/include/git/ProjectListDirectory.class.php
+++ b/include/git/ProjectListDirectory.class.php
@@ -77,7 +77,7 @@
 			return;
 
 		if ($dh = opendir($dir)) {
-			$trimlen = strlen(GitPHP_Config::GetInstance()->GetValue('projectroot')) + 1;
+			$trimlen = strlen($this->projectDir) + 1;
 			while (($file = readdir($dh)) !== false) {
 				$fullPath = $dir . '/' . $file;
 				if ((strpos($file, '.') !== 0) && is_dir($fullPath)) {

comments