mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +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) {
|
function callHook($hook) {
|
||||||
$tmp = explode('_', get_class($this));
|
$tmp = explode('_', get_class($this));
|
||||||
if(isset($GLOBALS['SEEDDMS_HOOKS'][lcfirst($tmp[2])])) {
|
if(isset($GLOBALS['SEEDDMS_HOOKS']['view'][lcfirst($tmp[2])])) {
|
||||||
foreach($GLOBALS['SEEDDMS_HOOKS'][lcfirst($tmp[2])] as $hookObj) {
|
foreach($GLOBALS['SEEDDMS_HOOKS']['view'][lcfirst($tmp[2])] as $hookObj) {
|
||||||
if (method_exists($hookObj, $hook)) {
|
if (method_exists($hookObj, $hook)) {
|
||||||
return $hookObj->$hook($this);
|
return $hookObj->$hook($this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user