-
- $plug_h =& $globals->plugins->load($plugentry);
-
- if (is_object($plug_h) && is_array($plugentry)) {
- $pos = array_search($plugin, $active);
-
- if ($pos !== false) {
- // check the plugin is allowed in the current context
- if ($this->plug_barrel and $this->plug_page) {
- $wperms = $this->plug_page_wperms;
-
- // $page->info("checking plugin '$plugin' vs. write permissions '$wperms'..");
- if (!$plug_h->allow_wperms($wperms))
- {
- $page->info("plugin '$plugin' is not allowed with write permissions '$wperms'!");
- break;
- }
- }
-
- // retrieve parameters from REQUEST
- foreach ($plug_h->getParamNames() as $key)
+
+ $plug_h =& $globals->plugins->load($plugin, $plugentry);
+ if (!is_object($plug_h)) {
+ $page->info("could not load plugin '$plugin' in cache for barrel '{$this->plug_barrel}'");
+ return;
+ }
+
+ if ($pos !== false) {
+ // check the plugin is allowed in the current context
+ if ($this->plug_barrel and $this->plug_page) {
+ $wperms = $this->plug_page_wperms;
+
+ // $page->info("checking plugin '$plugin' vs. write permissions '$wperms'..");
+ if (!$plug_h->allow_wperms($wperms))