| | |
| | | |
| | | foreach ($this->plugins as $plugin) { |
| | | // ... task, request type and framed mode |
| | | if (!$this->filter($plugin)) { |
| | | if (!$this->plugins_initialized[$plugin_name] && !$this->filter($plugin)) { |
| | | $plugin->init(); |
| | | $this->plugins_initialized[$plugin->ID] = $plugin; |
| | | } |
| | |
| | | |
| | | // load required core plugin if no derivate was found |
| | | if (!$loaded) { |
| | | $loaded = $this->load_plugin($plugin_name, true); |
| | | $loaded = $this->load_plugin($plugin_name); |
| | | } |
| | | |
| | | // trigger fatal error if still not loaded |
| | |
| | | |
| | | if ($plugin = $this->plugins[$plugin_name]) { |
| | | // init a plugin only if $force is set or if we're called after initialization |
| | | if (($force || $this->initialized) && !$this->plugins_initialized[$plugin_name] && !$this->filter($plugin)) { |
| | | if (($force || $this->initialized) && !$this->plugins_initialized[$plugin_name] && ($force || !$this->filter($plugin))) { |
| | | $plugin->init(); |
| | | $this->plugins_initialized[$plugin_name] = $plugin; |
| | | } |