FIX USEDOLIBARREDITOR not always set

This commit is contained in:
Laurent Destailleur 2019-08-13 05:22:49 +02:00
parent 8e0a023270
commit 52d34edb03

View File

@ -23,6 +23,7 @@
define('NOSCANPOSTFORINJECTION', 1);
define('NOSTYLECHECK', 1);
define('USEDOLIBARREDITOR', 1);
header('X-XSS-Protection:0');
@ -3009,7 +3010,6 @@ if ($action == 'preview' || $action == 'createfromclone' || $action == 'createpa
// If mode WEBSITE_SUBCONTAINERSINLINE is on
if (! empty($conf->global->WEBSITE_SUBCONTAINERSINLINE))
{
define('USEDOLIBARREDITOR', 1);
//var_dump($filetpl);
$filephp = $filetpl;
ob_start();