X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Finst_module.php;h=0e7cb534cf63e97fba7019c96bb31697d6ccd840;hb=1d8ca637beb25da5f36084fdecb6c24dc5d61eab;hp=e19523f1c314e86bb337eee9b09c4368de9e790b;hpb=80252de2e88e9c1584d05bee1e7befa3a5be17f2;p=fa-stable.git diff --git a/admin/inst_module.php b/admin/inst_module.php index e19523f1..0e7cb534 100644 --- a/admin/inst_module.php +++ b/admin/inst_module.php @@ -42,13 +42,14 @@ function local_extension($id) 'active' => false ); - @include_once($path_to_root.'/modules/'.$id.'/hooks.php'); + if (file_exists($path_to_root.'/modules/'.$id.'/hooks.php')) { + include_once($path_to_root.'/modules/'.$id.'/hooks.php'); + } $hooks_class = 'hooks_'.$id; - if (class_exists($hooks_class)) { + if (class_exists($hooks_class, false)) { $hooks = new $hooks_class; $hooks->install_extension(false); } - $Ajax->activate('ext_tbl'); // refresh settings display if (!update_extensions($exts)) return false;