From ae3da17939f7618437d21ecbec570937b25f9a17 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 22 May 2005 20:07:16 +0000 Subject: [PATCH] ldapmodify was not working any more, fixed it now: phpgw --> egw --- setup/ldapmodify.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/setup/ldapmodify.php b/setup/ldapmodify.php index c321749208..5e7427816d 100644 --- a/setup/ldapmodify.php +++ b/setup/ldapmodify.php @@ -28,19 +28,19 @@ } /* Does not return unless user is authorized */ - class phpgw + class egw { var $common; var $accounts; var $applications; var $db; } - $phpgw = new phpgw; - $phpgw->common = CreateObject('phpgwapi.common'); + $GLOBALS['egw'] = new egw; + $GLOBALS['egw']->common = CreateObject('phpgwapi.common'); - $common = $phpgw->common; + $common = $GLOBALS['egw']->common; $GLOBALS['egw_setup']->loaddb(); - copyobj($GLOBALS['egw_setup']->db,$phpgw->db); + $GLOBALS['egw']->db = clone($GLOBALS['egw_setup']->db); $tpl_root = $GLOBALS['egw_setup']->html->setup_tpl_dir('setup'); $setup_tpl = CreateObject('setup.Template',$tpl_root); @@ -64,8 +64,8 @@ $phpgw_info['server']['account_repository'] = $config['account_repository']; $phpgw_info['server']['ldap_version3'] = $config['ldap_version3']; - $phpgw->accounts = CreateObject('phpgwapi.accounts'); - $acct = $phpgw->accounts; + $GLOBALS['egw']->accounts = CreateObject('phpgwapi.accounts'); + $acct = $GLOBALS['egw']->accounts; /* connect to ldap server */ if(!$ldap = $common->ldapConnect())