[Fusionforge-commits] r11786 - trunk/src/plugins/oslc/include/oslc-zend/application/controllers

Sabri LABBENE labbenes at libremir.placard.fr.eu.org
Mon Dec 13 12:27:00 CET 2010


Author: labbenes
Date: 2010-12-13 12:27:00 +0100 (Mon, 13 Dec 2010)
New Revision: 11786

Modified:
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/CmController.php
Log:
Serve indexes according to tracker type (fusionforge, codendi or Mantis).

Modified: trunk/src/plugins/oslc/include/oslc-zend/application/controllers/CmController.php
===================================================================
--- trunk/src/plugins/oslc/include/oslc-zend/application/controllers/CmController.php	2010-12-13 11:17:19 UTC (rev 11785)
+++ trunk/src/plugins/oslc/include/oslc-zend/application/controllers/CmController.php	2010-12-13 11:27:00 UTC (rev 11786)
@@ -248,7 +248,19 @@
 	}
 
 	public function indexAction(){
-
+		switch (TRACKER_TYPE) {
+			case 'mantis':
+				$this->_forward('index','mantiscm');
+				break;	
+			case 'fusionforge':
+				$this->_forward('index','fusionforgecm');
+				break;
+			case 'Codendi':
+				$this->_forward('index', 'codendicm');
+				break;
+			default:
+				break;				
+		}
 	}
 
 	public function putAction(){




More information about the Fusionforge-commits mailing list