forked from extern/egroupware
Juggling the location of get_account_id().
This commit is contained in:
parent
ed199e06eb
commit
c40f06de24
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user