diff --git a/src/ninesurvey-1.0/.env b/src/ninesurvey-1.0/.env index c3a0b7f..5ac605d 100644 --- a/src/ninesurvey-1.0/.env +++ b/src/ninesurvey-1.0/.env @@ -65,3 +65,4 @@ PROXY_PORT= # Sonde statistic SONDE_USE=0 +SONDE_URL= diff --git a/src/ninesurvey-1.0/config/packages/twig.yaml b/src/ninesurvey-1.0/config/packages/twig.yaml index 8907b65..5cfbca2 100644 --- a/src/ninesurvey-1.0/config/packages/twig.yaml +++ b/src/ninesurvey-1.0/config/packages/twig.yaml @@ -16,4 +16,5 @@ twig: wssuse: '%wssuse%' wssurl: '%wssurl%' sondeUse: '%sondeUse%' + sondeUrl: '%sondeUrl%' diff --git a/src/ninesurvey-1.0/config/services.yaml b/src/ninesurvey-1.0/config/services.yaml index 736258e..c0d9749 100644 --- a/src/ninesurvey-1.0/config/services.yaml +++ b/src/ninesurvey-1.0/config/services.yaml @@ -56,6 +56,7 @@ parameters: proxyPort: '%env(resolve:PROXY_PORT)%' sondeUse: '%env(resolve:SONDE_USE)%' + sondeUrl: '%env(resolve:SONDE_URL)%' services: # default configuration for services in *this* file diff --git a/src/ninesurvey-1.0/scripts/.env.model b/src/ninesurvey-1.0/scripts/.env.model index c3a0b7f..5ac605d 100644 --- a/src/ninesurvey-1.0/scripts/.env.model +++ b/src/ninesurvey-1.0/scripts/.env.model @@ -65,3 +65,4 @@ PROXY_PORT= # Sonde statistic SONDE_USE=0 +SONDE_URL= diff --git a/tmpl/ninesurvey-env.local b/tmpl/ninesurvey-env.local index 7fbb2ab..f47aa95 100644 --- a/tmpl/ninesurvey-env.local +++ b/tmpl/ninesurvey-env.local @@ -112,10 +112,14 @@ PROXY_PORT= # Sonde statistic %if %%getVar("activer_sondepiwik_local", 'non') == "oui" SONDE_USE=1 +SONDE_URL=/sondepiwik/envoleTrackeur.js.php %else if %%getVar("activer_piwik", 'non') == "oui" SONDE_USE=1 +SONDE_URL=/piwik/envoleTrackeur.js.php %else if %%getVar("activer_sondednma", 'non') == "oui" SONDE_USE=1 +SONDE_URL=/sondepiwik/envoleTrackeur.js.php %else SONDE_USE=0 +SONDE_URL= %end if \ No newline at end of file