Skip to content
Snippets Groups Projects
Commit e52ad709 authored by lecluse's avatar lecluse
Browse files

Correction de bug : antislash ajouté de manière conditionnelle

parent 0b84676f
No related branches found
No related tags found
No related merge requests found
...@@ -46,8 +46,9 @@ class Module implements ControllerPluginProviderInterface, ViewHelperProviderInt ...@@ -46,8 +46,9 @@ class Module implements ControllerPluginProviderInterface, ViewHelperProviderInt
public function injectJsFiles(ServiceLocatorInterface $serviceLocator) public function injectJsFiles(ServiceLocatorInterface $serviceLocator)
{ {
$basePath = dirname($_SERVER['PHP_SELF']); $basePath = dirname($_SERVER['PHP_SELF']);
if ( substr($basePath, -1) !== '/' ) $basePath .= '/';
$jsFiles = [ $jsFiles = [
'/js/elementPedagogiqueRecherche.js' 'js/elementPedagogiqueRecherche.js'
]; ];
foreach( $jsFiles as $jsFile ){ foreach( $jsFiles as $jsFile ){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment