[Fusionforge-commits] r10081 - branches/Branch_5_0/gforge/www/scm/include

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Jun 17 18:12:34 CEST 2010


Author: lolando
Date: 2010-06-17 18:12:34 +0200 (Thu, 17 Jun 2010)
New Revision: 10081

Modified:
   branches/Branch_5_0/gforge/www/scm/include/viewvc_utils.php
Log:
Fixed inconsistency in the code causing the CVS/SVN browser pages to complain that the repos aren't created yet because it looks in the wrong place.


Modified: branches/Branch_5_0/gforge/www/scm/include/viewvc_utils.php
===================================================================
--- branches/Branch_5_0/gforge/www/scm/include/viewvc_utils.php	2010-06-17 15:10:53 UTC (rev 10080)
+++ branches/Branch_5_0/gforge/www/scm/include/viewvc_utils.php	2010-06-17 16:12:34 UTC (rev 10081)
@@ -70,9 +70,11 @@
 	}
 	
 	if ($repos_type == "cvs") {
-		$repos_root = $GLOBALS['cvsdir_prefix'].'/'.$repos_name;
+		$p = plugin_get_object ('scmcvs') ;
+		$repos_root = $p->cvs_root.'/'.$repos_name;
 	} else if ($repos_type == "svn") {
-		$repos_root = $GLOBALS['svndir_prefix'].'/'.$repos_name;
+		$p = plugin_get_object ('scmsvn') ;
+		$repos_root = $p->svn_root.'/'.$repos_name;
 	} else {
 		die("Invalid repository type");
 	}




More information about the Fusionforge-commits mailing list