Apply description from repo config value "gitweb.description" in absence of "gitphp.description".
Apply description from repo config value "gitweb.description" in absence of "gitphp.description".

Signed-off-by: Chris Han <xiphux@gmail.com>

--- a/include/git/projectlist/ProjectListBase.class.php
+++ b/include/git/projectlist/ProjectListBase.class.php
@@ -362,6 +362,8 @@
 
 		if ($config->HasValue('gitphp.description')) {
 			$project->SetDescription($config->GetValue('gitphp.description'));
+		} else if ($config->HasValue('gitweb.description')) {
+			$project->SetDescription($config->GetValue('gitweb.description'));
 		}
 
 		if ($config->HasValue('gitphp.category')) {

comments