Permalink
Browse files

Pass context when calling run_plugin_action

  • Loading branch information...
1 parent 38654b3 commit 87cd50556f73d38babdf20d64232be1ff1e8dfb6 @cdujeu cdujeu committed Aug 27, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/plugins/access.ajxp_conf/src/PluginsManager.php
@@ -184,7 +184,7 @@ public function pluginsActions(ServerRequestInterface $requestInterface, Respons
$plugin = PluginsService::getInstance($ctx)->softLoad($pluginId, $options);
if (method_exists($plugin, $httpVars["action_plugin_method"])) {
try {
- $res = call_user_func(array($plugin, $httpVars["action_plugin_method"]), $options);
+ $res = call_user_func(array($plugin, $httpVars["action_plugin_method"]), $options, $ctx);
$response = $res;
} catch (\Exception $e) {
$response = "ERROR:" . $e->getMessage();

0 comments on commit 87cd505

Please sign in to comment.