Rename InstantiateProject to LoadProject
[gitphp.git] / include / git / projectlist / ProjectListArrayLegacy.class.php
blob:a/include/git/projectlist/ProjectListArrayLegacy.class.php -> blob:b/include/git/projectlist/ProjectListArrayLegacy.class.php
--- a/include/git/projectlist/ProjectListArrayLegacy.class.php
+++ b/include/git/projectlist/ProjectListArrayLegacy.class.php
@@ -12,7 +12,7 @@
 	/**
 	 * No category indicator
 	 *
-	 * @const
+	 * @var string
 	 */
 	const NoCategory = 'none';
 
@@ -39,9 +39,9 @@
 	 */
 	protected function PopulateProjects()
 	{
-		foreach ($this->projectConfig as $cat => $plist) {
+		foreach ($this->projectConfig as $plist) {
 			if (is_array($plist)) {
-				foreach ($plist as $pname => $ppath) {
+				foreach ($plist as $ppath) {
 					try {
 						$projObj = $this->LoadProject($ppath);
 						if ($projObj) {
@@ -49,7 +49,7 @@
 							unset($projObj);
 						}
 					} catch (Exception $e) {
-						$this->Log($e->getMessage());
+						$this->Log('Project error', $e->getMessage());
 					}
 				}
 			}

comments