Attach logger to projectlist as observer
[gitphp.git] / include / git / projectlist / ProjectListScmManager.class.php
blob:a/include/git/projectlist/ProjectListScmManager.class.php -> blob:b/include/git/projectlist/ProjectListScmManager.class.php
--- a/include/git/projectlist/ProjectListScmManager.class.php
+++ b/include/git/projectlist/ProjectListScmManager.class.php
@@ -84,17 +84,17 @@
 			return null;
 
 		if (!(isset($data['type']) && ($data['type'] == 'git'))) {
-			GitPHP_DebugLog::GetInstance()->Log(sprintf('%1$s is not a git project', $proj));
+			$this->Log(sprintf('%1$s is not a git project', $proj));
 			return null;
 		}
 
 		if (!(isset($data['public']) && ($data['public'] == true))) {
-			GitPHP_DebugLog::GetInstance()->Log(sprintf('%1$s is not public', $proj));
+			$this->Log(sprintf('%1$s is not public', $proj));
 			return null;
 		}
 
 		if (!is_file(GitPHP_Util::AddSlash($this->projectRoot) . $proj . '/HEAD')) {
-			GitPHP_DebugLog::GetInstance()->Log(sprintf('%1$s is not a git project', $proj));
+			$this->Log(sprintf('%1$s is not a git project', $proj));
 		}
 
 		$projectObj = new GitPHP_Project($this->projectRoot, $proj);

comments