projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tax Inquiry: fixed refrences to non-existing database fields.
[fa-stable.git]
/
includes
/
hooks.inc
diff --git
a/includes/hooks.inc
b/includes/hooks.inc
index 71717fc154202a4071612a4060bb428b3f371e6b..cb5cddfa9db3e604635b80a3ab52023cb0dd3cbb 100644
(file)
--- a/
includes/hooks.inc
+++ b/
includes/hooks.inc
@@
-116,6
+116,7
@@
class hooks {
function price_in_words($amount, $doc_type)
{
}
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
//
// 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;
function activate_hooks($ext, $comp)
{
global $Hooks;
-
+
$hooks = @$Hooks[$ext];
if (!$hooks) {
$hookclass = 'hooks_'.$ext;
$hooks = @$Hooks[$ext];
if (!$hooks) {
$hookclass = 'hooks_'.$ext;
@@
-312,7
+313,7
@@
function hook_invoke_first($method, &$data, $opts=null)
{
global $Hooks;
{
global $Hooks;
-
+
$result = null;
foreach($Hooks as $ext => $hook) {
if (method_exists($hook, $method)) {
$result = null;
foreach($Hooks as $ext => $hook) {
if (method_exists($hook, $method)) {