mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Moved after_navbar hook into a egw_framework method
This commit is contained in:
parent
30d45d9b37
commit
6ecb981cb5
@ -950,6 +950,20 @@ abstract class egw_framework
|
||||
self::$top_menu_extra[$id] = $entry;
|
||||
}
|
||||
|
||||
/**
|
||||
* Call and return content of 'after_navbar' hook
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected function _get_after_navbar()
|
||||
{
|
||||
ob_start();
|
||||
$GLOBALS['egw']->hooks->process('after_navbar',null,true);
|
||||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
return $content;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -258,10 +258,7 @@ class idots_framework extends egw_framework
|
||||
}
|
||||
|
||||
// hook after navbar
|
||||
ob_start();
|
||||
$GLOBALS['egw']->hooks->process('after_navbar',null,true);
|
||||
$content .= ob_get_contents();
|
||||
ob_end_clean();
|
||||
$content .= $this->_get_after_navbar();
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user