Error in event-hooks
This commit is contained in:
parent
ddc54d4dd0
commit
7c16ad6a65
30
dav/main.php
30
dav/main.php
|
@ -22,18 +22,7 @@ function dav_module()
|
|||
{
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param App $a
|
||||
*/
|
||||
function dav_init(&$a)
|
||||
{
|
||||
|
||||
/*
|
||||
* Recommended settings:
|
||||
* ALTER TABLE `photo` ADD INDEX ( `contact-id` )
|
||||
*/
|
||||
|
||||
function dav_include_files() {
|
||||
require_once (__DIR__ . "/common/dbclasses/dbclass_animexx.class.php");
|
||||
require_once (__DIR__ . "/common/dbclasses/dbclass.friendica.calendars.class.php");
|
||||
require_once (__DIR__ . "/common/dbclasses/dbclass.friendica.jqcalendar.class.php");
|
||||
|
@ -75,6 +64,21 @@ function dav_init(&$a)
|
|||
|
||||
require_once (__DIR__ . "/calendar.friendica.fnk.php");
|
||||
require_once (__DIR__ . "/layout.fnk.php");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param App $a
|
||||
*/
|
||||
function dav_init(&$a)
|
||||
{
|
||||
|
||||
/*
|
||||
* Recommended settings:
|
||||
* ALTER TABLE `photo` ADD INDEX ( `contact-id` )
|
||||
*/
|
||||
|
||||
dav_include_files();
|
||||
|
||||
if (false) {
|
||||
dbg(true);
|
||||
|
@ -197,6 +201,7 @@ function dav_content()
|
|||
*/
|
||||
function dav_event_created_hook(&$a, &$b)
|
||||
{
|
||||
dav_include_files();
|
||||
// @TODO Updating the cache instead of completely invalidating and rebuilding it
|
||||
FriendicaVirtualCalSourceBackend::invalidateCache($a->user["uid"], CALDAV_FRIENDICA_CONTACTS);
|
||||
FriendicaVirtualCalSourceBackend::invalidateCache($a->user["uid"], CALDAV_FRIENDICA_MINE);
|
||||
|
@ -208,6 +213,7 @@ function dav_event_created_hook(&$a, &$b)
|
|||
*/
|
||||
function dav_event_updated_hook(&$a, &$b)
|
||||
{
|
||||
dav_include_files();
|
||||
// @TODO Updating the cache instead of completely invalidating and rebuilding it
|
||||
FriendicaVirtualCalSourceBackend::invalidateCache($a->user["uid"], CALDAV_FRIENDICA_CONTACTS);
|
||||
FriendicaVirtualCalSourceBackend::invalidateCache($a->user["uid"], CALDAV_FRIENDICA_MINE);
|
||||
|
|
Loading…
Reference in New Issue
Block a user