From d9c73692d99f060e8d9d95f345bd1de933536988 Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Mon, 12 Oct 2020 14:36:50 +0200 Subject: [PATCH] Set default value for 3rd party libraries [MAILPOET-3128] --- lib/Config/Populator.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Config/Populator.php b/lib/Config/Populator.php index 2cab739054..fcc5f3aba4 100644 --- a/lib/Config/Populator.php +++ b/lib/Config/Populator.php @@ -291,6 +291,12 @@ class Populator { } // reset mailer log MailerLog::resetMailerLog(); + + $thirdPartyScriptsEnabled = $this->settings->get('3rd_party_libs'); + if (is_null($thirdPartyScriptsEnabled)) { + // if third party libraries are not set to anything we will enable them by default, user can manually disable this + $this->settings->set('3rd_party_libs.enabled', '1'); + } } private function createDefaultUsersFlags() {