From b32ded3400e888a17b8b983908efc0e9f6109bdf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 26 May 2009 17:26:24 +0000 Subject: [PATCH] "re-added (depricated) php4 constructor, as it get's called by some old apps" --- phpgwapi/inc/class.hooks.inc.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 *