diff --git a/framework/src/Maveriks/WebApplication.php b/framework/src/Maveriks/WebApplication.php index 56caa5907..d5b399b4b 100644 --- a/framework/src/Maveriks/WebApplication.php +++ b/framework/src/Maveriks/WebApplication.php @@ -2,6 +2,7 @@ namespace Maveriks; +use Bootstrap; use Maveriks\Util; use ProcessMaker\Core\System; use ProcessMaker\Plugins\PluginRegistry; @@ -486,9 +487,9 @@ class WebApplication app()->useStoragePath(realpath(PATH_DATA)); app()->make(Kernel::class)->bootstrap(); - \Bootstrap::setLanguage(); + Bootstrap::setLanguage(); - \Bootstrap::LoadTranslationObject((defined("SYS_LANG")) ? SYS_LANG : "en"); + Bootstrap::LoadTranslationObject((defined("SYS_LANG")) ? SYS_LANG : "en"); if (empty($workspace)) { return true; @@ -584,6 +585,11 @@ class WebApplication define('TIME_ZONE', ini_get('date.timezone')); + $oPluginRegistry = PluginRegistry::loadSingleton(); + $attributes = $oPluginRegistry->getAttributes(); + Bootstrap::LoadTranslationPlugins(defined('SYS_LANG') ? SYS_LANG : "en", $attributes); + // Initialization functions plugins + $oPluginRegistry->init(); //Return return true; }