Correction chemin wsdl
This commit is contained in:
parent
f2e3d9ffbd
commit
6c87a7c554
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user