mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
view hooks are now in $GLOBALS['SEEDDMS_HOOKS']['view']
This commit is contained in:
parent
317021a283
commit
25a6bf8f72
|
@ -60,8 +60,8 @@ class SeedDMS_View_Common {
|
|||
|
||||
function callHook($hook) {
|
||||
$tmp = explode('_', get_class($this));
|
||||
if(isset($GLOBALS['SEEDDMS_HOOKS'][lcfirst($tmp[2])])) {
|
||||
foreach($GLOBALS['SEEDDMS_HOOKS'][lcfirst($tmp[2])] as $hookObj) {
|
||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['view'][lcfirst($tmp[2])])) {
|
||||
foreach($GLOBALS['SEEDDMS_HOOKS']['view'][lcfirst($tmp[2])] as $hookObj) {
|
||||
if (method_exists($hookObj, $hook)) {
|
||||
return $hookObj->$hook($this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user