Skip to content
Snippets Groups Projects

Sandbox 14246 cosmo integration files

Merged Ghislain Loas requested to merge sandbox_14246_cosmo_integration_files into master
Compare and
+ 5
2
Preferences
Compare changes
@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with AFI-OPAC 2.0; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -36,7 +36,7 @@ class Cosmo_RunLogController extends Zend_Controller_Action {
public function syntheseAction() {
if (!$run = Class_Cosmogramme_Integration::find((int)$this->_getParam('id')))
$this->_redirect($this->cosmoPath->getCosmoBaseUrl() . 'php/integre_log.php',
$this->_redirect($this->cosmoPath->getCosmoBaseUrl() . 'php/integre_log.php',
['prependBase' => false]);
$this->view->date = $run->getTraite();
$this->view->run = $run;
@@ -48,6 +48,9 @@ class Cosmo_RunLogController extends Zend_Controller_Action {
if ((!$run = Class_Cosmogramme_Integration::find((int)$this->_getParam('id')))
|| !$run->fileExists())
return;
if ($layout = Zend_Layout::getMvcInstance() ) {
$layout->disableLayout();
}
$file_path = $run->getFilePath();
header('Content-type: application/force-download');