From d9558f041712d29d3fbace0ed84aeace4fe3bf67 Mon Sep 17 00:00:00 2001 From: skeeter Date: Tue, 13 Feb 2001 00:18:41 +0000 Subject: [PATCH] fix for deleteaccount --- admin/inc/accounts_ldap.inc.php | 4 ++-- admin/inc/accounts_sql.inc.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/inc/accounts_ldap.inc.php b/admin/inc/accounts_ldap.inc.php index 9862b7cf50..cb7b6ac417 100644 --- a/admin/inc/accounts_ldap.inc.php +++ b/admin/inc/accounts_ldap.inc.php @@ -297,8 +297,8 @@ $table_locks = array('preferences','todo','addressbook','accounts'); - include($phpgw_info["server"]["server_root"]."/calendar/inc/functions.inc.php"); - $phpgw->calendar->delete($lid); + $cal = CreateObject('calendar.calendar'); + $cal->delete($lid); $phpgw->db->lock($table_locks); diff --git a/admin/inc/accounts_sql.inc.php b/admin/inc/accounts_sql.inc.php index fd427e28d4..245cdcc06c 100755 --- a/admin/inc/accounts_sql.inc.php +++ b/admin/inc/accounts_sql.inc.php @@ -151,8 +151,8 @@ $table_locks = array('preferences','todo','addressbook','accounts'); - include($phpgw_info["server"]["server_root"]."/calendar/inc/functions.inc.php"); - $phpgw->calendar->delete($lid); + $cal = CreateObject('calendar.calendar'); + $cal->delete($lid); $phpgw->db->lock($table_locks);