diff --git a/phpgwapi/inc/class.hooks.inc.php b/phpgwapi/inc/class.hooks.inc.php index 070da43371..b947e6c426 100644 --- a/phpgwapi/inc/class.hooks.inc.php +++ b/phpgwapi/inc/class.hooks.inc.php @@ -46,7 +46,7 @@ class hooks /** * constructor, reads and caches the complete hooks table * - * @param object $db=null database class, if null we use $GLOBALS['egw']->db + * @param egw_db $db=null database class, if null we use $GLOBALS['egw']->db */ function __construct($db=null) { @@ -59,6 +59,17 @@ class hooks //_debug_array($this->found_hooks); } + /** + * php4 constructor + * + * @param egw_db $db + * @deprecated use __construct() + */ + function hooks($db=null) + { + self::__construct(); + } + /** * executes all the hooks (the user has rights to) for a given location *