Calendar: fix occasional 502 error on first login after restart

This commit is contained in:
nathan 2023-05-03 14:36:22 -06:00
parent 9aa4c6f403
commit aaa8a4a3f9
3 changed files with 8 additions and 2 deletions

View File

@ -960,6 +960,13 @@ END:VALARM';
return false; return false;
} }
/**
* Returns a list of custom widgets classes for etemplate2
*/
public static function widgets()
{
return array('calendar_owner_etemplate_widget');
}
} }
// Not part of the class, since config hooks are still using the old style // Not part of the class, since config hooks are still using the old style

View File

@ -16,8 +16,6 @@ use EGroupware\Api\Egw;
use EGroupware\Api\Etemplate; use EGroupware\Api\Etemplate;
use EGroupware\Api\Framework; use EGroupware\Api\Framework;
require_once("class.calendar_owner_etemplate_widget.inc.php");
/** /**
* Shared base-class of all calendar UserInterface classes * Shared base-class of all calendar UserInterface classes
* *

View File

@ -46,6 +46,7 @@ $setup_info['calendar']['hooks']['acl_rights'] = 'calendar_hooks::acl_rights';
$setup_info['calendar']['hooks']['categories'] = 'calendar_hooks::categories'; $setup_info['calendar']['hooks']['categories'] = 'calendar_hooks::categories';
$setup_info['calendar']['hooks']['mail_import'] = 'calendar_hooks::mail_import'; $setup_info['calendar']['hooks']['mail_import'] = 'calendar_hooks::mail_import';
$setup_info['calendar']['hooks']['notifications_actions'] = 'calendar_hooks::notifications_actions'; $setup_info['calendar']['hooks']['notifications_actions'] = 'calendar_hooks::notifications_actions';
$setup_info['calendar']['hooks']['etemplate2_register_widgets'] = 'calendar_hooks::widgets';
/* Dependencies for this app to work */ /* Dependencies for this app to work */
$setup_info['calendar']['depends'][] = array( $setup_info['calendar']['depends'][] = array(