I think this fixes it

This commit is contained in:
seek3r 2001-01-27 15:59:19 +00:00
parent a000b3d00d
commit caa97ad127
3 changed files with 5 additions and 11 deletions

View File

@ -38,8 +38,8 @@
}
$phpgw_info["user"]["preferences"] = $phpgw->preferences->get_preferences();
$this->groups = $this->read_groups($phpgw_info["user"]["userid"]);
$apps = CreateObject('phpgwapi.applications',intval($phpgw_info["user"]["account_id"]));
//$phpgw_info["user"]["apps"] = $apps->apps_enabled();
$apps = CreateObject('phpgwapi.applications');
$phpgw_info["user"]["apps"] = $apps->users_enabled_apps();
}
// use this if you make any changes to phpgw_info, including preferences, config table changes, etc

View File

@ -28,13 +28,6 @@
var $user_apps = Array();
var $group_apps = Array();
function applications($var = ""){
global $phpgw, $phpgw_info;
if ($var != ""){
$this->users_enabled_apps();
}
}
function users_enabled_apps()
{
global $phpgw, $phpgw_info;

View File

@ -119,7 +119,7 @@
if ($phpgw_info["flags"]["currentapp"] == "login") {
$log = explode("@",$login);
$this->preferences = CreateObject("phpgwapi.preferences", $log[0]);
$this->applications = CreateObject("phpgwapi.applications", $log[0]);
$this->applications = CreateObject("phpgwapi.applications");
}else{
if (! $this->session->verify()) {
$this->db->query("select config_value from config where config_name='webserver_url'",__LINE__,__FILE__);
@ -128,7 +128,8 @@
exit;
}
$this->preferences = CreateObject("phpgwapi.preferences", intval($phpgw_info["user"]["account_id"]));
$this->applications = CreateObject("phpgwapi.applications", intval($phpgw_info["user"]["account_id"]));
$this->applications = CreateObject("phpgwapi.applications");
$this->applications->users_enabled_apps();
}
$this->translation = CreateObject("phpgwapi.translation");