[Fusionforge-commits] r12224 - branches/Branch_5_1/src/plugins/oslc/include/oslc-zend/application/controllers

Olivier Berger olberger at libremir.placard.fr.eu.org
Thu Feb 10 16:11:32 CET 2011


Author: olberger
Date: 2011-02-10 16:11:32 +0100 (Thu, 10 Feb 2011)
New Revision: 12224

Modified:
   branches/Branch_5_1/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeCmController.php
Log:
Small improvement

Modified: branches/Branch_5_1/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeCmController.php
===================================================================
--- branches/Branch_5_1/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeCmController.php	2011-02-10 15:11:27 UTC (rev 12223)
+++ branches/Branch_5_1/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeCmController.php	2011-02-10 15:11:32 UTC (rev 12224)
@@ -63,22 +63,22 @@
 		$req = $this->getRequest();
 		//print_r($req);
 
-		if(($req->getActionName()=='post')||($req->getActionName()=='put'))
+		$action = $req->getActionName();
+		
+		if(($action == 'post')||($action == 'put'))
 		{
 			$accept = $req->getHeader('Content-Type');
 		}
-		elseif($req->getActionName()=='get')
+		elseif($action =='get')
 		{
 			$accept = $req->getHeader('Accept');
 		}
 		
-		$action = $req->getActionName();
-		
 		$mime = parent::checkSupportedActionMimeType(self::$supportedAcceptMimeTypes, $action);
 		if($mime) {
-			$accept = $mime;
+		  $accept = $mime;
 		}
-
+		
 		// determine output format
 		if (isset(self::$supportedAcceptMimeTypes[$action])) {
 			if (isset(self::$supportedAcceptMimeTypes[$action][$accept])) {




More information about the Fusionforge-commits mailing list