Juggling the location of get_account_id().

This commit is contained in:
skeeter 2001-03-21 05:01:28 +00:00
parent ed199e06eb
commit c40f06de24

View File

@ -206,6 +206,20 @@
$phpgw_info["server"][$phpgw->db->f("config_name")] = stripslashes($phpgw->db->f("config_value"));
}
/************************************************************************\
* Required classes *
\************************************************************************/
$phpgw->common = CreateObject("phpgwapi.common");
$phpgw->hooks = CreateObject("phpgwapi.hooks");
$phpgw->auth = createobject("phpgwapi.auth");
$phpgw->acl = CreateObject("phpgwapi.acl");
$phpgw->accounts = createobject("phpgwapi.accounts");
$phpgw->session = CreateObject("phpgwapi.sessions");
$phpgw->preferences = CreateObject("phpgwapi.preferences");
$phpgw->applications = CreateObject("phpgwapi.applications");
$phpgw->translation = CreateObject("phpgwapi.translation");
print_debug('main class loaded');
/************************************************************************\
* This function will return a properly formatted account_id. *
* This needs to be placed here, or some classes will have a problem *
@ -244,20 +258,6 @@
}
}
/************************************************************************\
* Required classes *
\************************************************************************/
$phpgw->common = CreateObject("phpgwapi.common");
$phpgw->hooks = CreateObject("phpgwapi.hooks");
$phpgw->auth = createobject("phpgwapi.auth");
$phpgw->acl = CreateObject("phpgwapi.acl");
$phpgw->accounts = createobject("phpgwapi.accounts");
$phpgw->session = CreateObject("phpgwapi.sessions");
$phpgw->preferences = CreateObject("phpgwapi.preferences");
$phpgw->applications = CreateObject("phpgwapi.applications");
$phpgw->translation = CreateObject("phpgwapi.translation");
print_debug('main class loaded');
/****************************************************************************\
* This is a global constant that should be used *
* instead of / or \ in file paths *