From fab314a7eee830f9cea2f6aeca5b5b2b6347a49a Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 12 May 2020 16:40:33 +0200 Subject: [PATCH] 0932 scrip vide --- core/module/config/config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/module/config/config.php b/core/module/config/config.php index 222d1ef8..2a16b8e7 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -505,10 +505,10 @@ class config extends common { // Soumission du formulaire if($this->isPost()) { // Ecrire les fichiers de script - if ($this->getInput('configScriptHead')) { + if ($this->geturl(2) === 'head') { file_put_contents(self::DATA_DIR . 'head.inc.html',$this->getInput('configScriptHead',null)); } - if ($this->getInput('configScriptBody')) { + if ($this->geturl(2) === 'body') { file_put_contents(self::DATA_DIR . 'body.inc.html',$this->getInput('configScriptBody',null)); } // Valeurs en sortie