Skip to content
Snippets Groups Projects
Commit 8354c7f1 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch...

Merge branch 'hotline#32400_affichage_des_types_de_public_a_parametrer_lundi_18_janvier_fc' into 'stable'

Hotline#32400 affichage des types de public a parametrer lundi 18 janvier fc

See merge request !1420
parents 15bd7cc4 94013471
Branches
Tags
7 merge requests!1553Master,!1502Master,!1501Stable,!1472Stable,!1428Master,!1427Hotline master,!1426Stable
- ticket #32400 : Cosmogramme : erreur sur certains écrans en accédant sans répétition du nom de domaine
\ No newline at end of file
......@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; 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
*/
date_default_timezone_set('Europe/Paris');
......@@ -28,7 +28,6 @@ require_once $cosmozendPath . '/../storm_init.php';
set_include_path( $cosmozendPath
. PATH_SEPARATOR . $cosmozendPath . '/application'
. PATH_SEPARATOR . $cosmozendPath . '/library'
. PATH_SEPARATOR . get_include_path());
Zend_Session::start();
......@@ -38,9 +37,10 @@ Zend_Layout::getMvcInstance()
->addHelperPath('ZendAfi/View/Helper', 'ZendAfi_View_Helper');
$front = Zend_Controller_Front::getInstance()
->throwExceptions(true)
->addModuleDirectory($cosmozendPath . '/application/modules')
->setDefaultModule('opac')
->registerPlugin(new ZendAfi_Controller_Plugin_CosmoAuth());
->throwExceptions(true)
->addModuleDirectory($cosmozendPath . '/application/modules')
->setDefaultModule('opac')
->registerPlugin(new ZendAfi_Controller_Plugin_CosmoAuth())
->registerPlugin(new ZendAfi_Controller_Plugin_CosmoBaseUrl());
$front->dispatch();
\ No newline at end of file
<?php
/**
* Copyright (c) 2012-2016, Agence Française Informatique (AFI). All rights reserved.
*
* BOKEH is free software; you can redistribute it and/or modify
* it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
* the Free Software Foundation.
*
* There are special exceptions to the terms and conditions of the AGPL as it
* is applied to this software (see README file).
*
* BOKEH is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class ZendAfi_Controller_Plugin_CosmoBaseUrl extends Zend_Controller_Plugin_Abstract {
public function routeStartup(Zend_Controller_Request_Abstract $request) {
// while cosmozend is not a bokeh module, base url detection is not compatible with rewrite to subdir
// @see http://forge.afi-sa.fr/issues/32400
if ('' == $request->getBaseUrl())
$request->setBaseUrl('/cosmogramme/cosmozend');
}
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment