diff --git a/admin-dev/ajax.php b/admin-dev/ajax.php index 411c4c2c1..f5b72d226 100644 --- a/admin-dev/ajax.php +++ b/admin-dev/ajax.php @@ -298,7 +298,7 @@ if (Tools::isSubmit('getHookableList')) if (!array_key_exists($hook_name, $hookableList)) $hookableList[$hook_name] = array(); if ($moduleInstance->isHookableOn($hook_name)) - array_push($hookableList[$hook_name], $module); + array_push($hookableList[$hook_name], str_replace('_', '-', $module)); } } diff --git a/classes/Hook.php b/classes/Hook.php index ffb421026..0cd54d4bf 100644 --- a/classes/Hook.php +++ b/classes/Hook.php @@ -389,18 +389,7 @@ class HookCore extends ObjectModel if ($array['live_edit'] && ((Tools::isSubmit('live_edit') && Tools::getValue('ad') && (Tools::getValue('liveToken') == sha1(Tools::getValue('ad')._COOKIE_KEY_))))) { $live_edit = true; - $output .= ' -
'; + $output .= self::wrapLiveEdit($display, $moduleInstance, $array['id_hook']); } else $output .= $display; @@ -408,10 +397,24 @@ font-style:italic;">