forked from extern/egroupware
"re-added (depricated) php4 constructor, as it get's called by some old apps"
This commit is contained in:
parent
7c8bd81149
commit
b32ded3400
@ -46,7 +46,7 @@ class hooks
|
|||||||
/**
|
/**
|
||||||
* constructor, reads and caches the complete hooks table
|
* 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)
|
function __construct($db=null)
|
||||||
{
|
{
|
||||||
@ -59,6 +59,17 @@ class hooks
|
|||||||
//_debug_array($this->found_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
|
* executes all the hooks (the user has rights to) for a given location
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user