Correction chemin wsdl

This commit is contained in:
Michael RICOIS 2016-01-26 09:34:28 +00:00
parent f2e3d9ffbd
commit 6c87a7c554

View File

@ -116,7 +116,8 @@ class ServiceController extends Zend_Controller_Action
// --- Get hostname - add compatibility with Reverse Proxy
$hostName = $this->getRequest()->getHttpHost();
$fichierWsdl = $hostName . '-' . $fichierWsdl;
$wsdlPath = APPLICATION_PATH.'/../data/wsdl';
$c = Zend_registry::get('config');
$wsdlPath = $c->profil->path->shared . '/wsdl';
// --- Fourniture du wsdl
if ( isset($_GET['wsdl']) && file_exists($wsdlPath . '/' . $fichierWsdl) )
@ -125,7 +126,6 @@ class ServiceController extends Zend_Controller_Action
header('Content-Type: text/xml');
}
readfile($wsdlPath . '/' . $fichierWsdl);
}
elseif ( isset($_GET['wsdl']) && !file_exists($wsdlPath . '/' . $fichierWsdl)
|| isset($_GET['wsdl-generate'])