Skip to content

Commit

Permalink
Merge pull request #6019 from frederic-benoist/develop
Browse files Browse the repository at this point in the history
Moving the call to the function renderwidget
  • Loading branch information
Julien Martin committed Aug 20, 2016
2 parents 4ea9f9c + 09cc740 commit 5f0e0b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion classes/Hook.php
Expand Up @@ -692,7 +692,7 @@ public static function exec($hook_name, $hook_args = array(), $id_module = null,
}
} elseif (Hook::isDisplayHookName($hook_name)) {
if ($moduleInstance instanceof WidgetInterface) {
$display = $moduleInstance->renderWidget($hook_name, $hook_args);
$display = Hook::coreRenderWidget($moduleInstance, $hook_name, $hook_args);

if ($array_return) {
$output[$moduleInstance->name] = $display;
Expand All @@ -715,6 +715,11 @@ public static function coreCallHook($module, $method, $params)
{
return $module->{$method}($params);
}

public static function coreRenderWidget($module, $hook_name, $params)
{
return $module->renderWidget($hook_name, $params);
}

/**
* @deprecated 1.5.0
Expand Down

0 comments on commit 5f0e0b4

Please sign in to comment.