/** * executes & returns or displays the template results * * @param string $resource_name * @param string $cache_id * @param string $compile_id * @param boolean $display */ function fetch($resource_name, $cache_id = null, $compile_id = null, $display = false) { require_once 'CRM/Utils/Menu.php'; // hack for now, we need to execute this at the end to allow the modules to // add new menu items etc, this CANNOT go in the smarty constructor $config =& CRM_Core_Config::singleton(); CRM_Utils_Menu::createLocalTasks($_GET[$config->userFrameworkURLVar]); return parent::fetch($resource_name, $cache_id, $compile_id, $display); }