/** * Constructor * * @param object &$subject The object to observe * @param array $config An optional associative array of configuration settings. * Recognized key values include 'name', 'group', 'params', 'language' * (this list is not meant to be comprehensive). * * @since 1.5 */ public function __construct(&$subject, $config = array()) { parent::__construct($subject, $config); $redcoreLoader = JPATH_LIBRARIES . '/redcore/bootstrap.php'; if (file_exists($redcoreLoader)) { require_once $redcoreLoader; // Sets plugin parameters for further use RBootstrap::$config = $this->params; // Sets initalization variables for frontend in Bootstrap class, according to plugin parameters RBootstrap::$loadFrontendCSS = $this->params->get('frontend_css', false); RBootstrap::$loadFrontendjQuery = $this->params->get('frontend_jquery', true); RBootstrap::$loadFrontendjQueryMigrate = $this->params->get('frontend_jquery_migrate', true); RBootstrap::$disableFrontendMootools = $this->params->get('frontend_disable_mootools', false); if (!$this->isInstaller()) { RBootstrap::bootstrap(false); } } }