[Fusionforge-commits] r15354 - branches/Branch_5_1/src/common/include

Julien HEYMAN jheyman at fusionforge.org
Thu Apr 19 11:18:44 CEST 2012


Author: jheyman
Date: 2012-04-19 11:18:43 +0200 (Thu, 19 Apr 2012)
New Revision: 15354

Modified:
   branches/Branch_5_1/src/common/include/Group.class.php
Log:
Workaround to create project with the selected SCM plugin

Modified: branches/Branch_5_1/src/common/include/Group.class.php
===================================================================
--- branches/Branch_5_1/src/common/include/Group.class.php	2012-04-18 12:49:18 UTC (rev 15353)
+++ branches/Branch_5_1/src/common/include/Group.class.php	2012-04-19 09:18:43 UTC (rev 15354)
@@ -2575,10 +2575,13 @@
 				}
 			}
 
-			$this->setUseSCM ($template->usesSCM()) ;
+			// Disabled to keep user choice from registration page.
+//			$this->setUseSCM ($template->usesSCM()) ;
 
 			foreach ($template->getPlugins() as $plugin_id => $plugin_name) {
-				$this->setPluginUse ($plugin_name) ;
+				if (preg_match('/^scm/', $plugin_name) && ($plugin_name != 'scmhook')) {
+					$this->setPluginUse($plugin_name);
+				}
 			}
 
 			foreach ($template->getRoles() as $oldrole) {




More information about the Fusionforge-commits mailing list