diff --git a/application/controllers/DocumentationController.php b/application/controllers/DocumentationController.php index 647e874b..41f38a6e 100644 --- a/application/controllers/DocumentationController.php +++ b/application/controllers/DocumentationController.php @@ -8,7 +8,7 @@ class DocumentationController extends Zend_Controller_Action public function indexAction() { $request = $this->getRequest(); - $ws = $request->getParam('ws','Entreprise'); + $ws = strtolower($request->getParam('ws','Entreprise')); $auth = Zend_Auth::getInstance(); //Si client possède un webservice particulier alors on redirige vers la doc clients @@ -104,8 +104,8 @@ class DocumentationController extends Zend_Controller_Action public function clientsAction() { $request = $this->getRequest(); - $client = $request->getParam('nom'); - $ws = 'Entreprise'; + $client = strtolower($request->getParam('nom')); + $ws = 'entreprise'; // Gestion des versions $clients = include APPLICATION_PATH . '/../library/WsScore/Clients/ClientsConfig.php'; @@ -123,7 +123,7 @@ class DocumentationController extends Zend_Controller_Action //Génération du tableau de mapping $classmap = array(); - $wsConfig = new Zend_Config_Ini($pathClassService.$ws.'.ini'); + $wsConfig = new Zend_Config_Ini($pathClassService.ucfirst($ws).'.ini'); if ( $wsConfig->count()>0 ) { foreach($wsConfig->Type->toArray() as $Type){ $classmap[$Type] = $Type; @@ -154,7 +154,6 @@ class DocumentationController extends Zend_Controller_Action $this->view->assign('serviceMethods', $tabServiceMethodsK); $this->view->assign('serviceTypes', $tabServiceTypes); - }