X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fhooks.inc;h=cb5cddfa9db3e604635b80a3ab52023cb0dd3cbb;hb=9451db1760036985de791ba24c442801e37f37de;hp=71717fc154202a4071612a4060bb428b3f371e6b;hpb=a5dcd87f46080a624b1a9ad4b0dd035bbd24ac50;p=fa-stable.git diff --git a/includes/hooks.inc b/includes/hooks.inc index 71717fc1..cb5cddfa 100644 --- a/includes/hooks.inc +++ b/includes/hooks.inc @@ -116,6 +116,7 @@ class hooks { function price_in_words($amount, $doc_type) { } + // // Exchange rate currency $curr as on date $date. // Keep in mind FA has internally implemented 3 exrate providers @@ -249,7 +250,7 @@ function install_hooks() function activate_hooks($ext, $comp) { global $Hooks; - + $hooks = @$Hooks[$ext]; if (!$hooks) { $hookclass = 'hooks_'.$ext; @@ -312,7 +313,7 @@ function hook_invoke_first($method, &$data, $opts=null) { global $Hooks; - + $result = null; foreach($Hooks as $ext => $hook) { if (method_exists($hook, $method)) {