This commit is contained in:
seek3r 2001-01-17 04:53:14 +00:00
parent 051325b3d9
commit 94ec5b8661
3 changed files with 3 additions and 5 deletions

View File

@ -111,9 +111,8 @@
/* Load selected accounts class */ /* Load selected accounts class */
if (empty($phpgw_info["server"]["account_repository"])){$phpgw_info["server"]["account_repository"] = $phpgw_info["server"]["auth_type"];} if (empty($phpgw_info["server"]["account_repository"])){$phpgw_info["server"]["account_repository"] = $phpgw_info["server"]["auth_type"];}
$this->accounts = CreateObject("phpgwapi.accounts"); $this->accounts = CreateObject("phpgwapi.accounts");
$this->preferences = CreateObject("phpgwapi.preferences", 0); $this->preferences = CreateObject("phpgwapi.preferences");
$this->session = CreateObject("phpgwapi.sessions"); $this->session = CreateObject("phpgwapi.sessions");
if ($phpgw_info["flags"]["currentapp"] == "login") { if ($phpgw_info["flags"]["currentapp"] == "login") {
$log = explode("@",$login); $log = explode("@",$login);
$this->preferences = CreateObject("phpgwapi.preferences", $log[0]); $this->preferences = CreateObject("phpgwapi.preferences", $log[0]);

View File

@ -29,7 +29,7 @@
var $account_id; var $account_id;
var $preference; var $preference;
function preferences($account_id) function preferences($account_id = 0)
{ {
global $phpgw; global $phpgw;
// echo "Account ID (Initializing) = ".$account_id."<br>\n"; // echo "Account ID (Initializing) = ".$account_id."<br>\n";

View File

@ -45,8 +45,7 @@
$phpgw_info["flags"]["included_classes"][$classname] = True; $phpgw_info["flags"]["included_classes"][$classname] = True;
include($phpgw_info["server"]["include_root"]."/".$appname."/inc/class.".$classname.".inc.php"); include($phpgw_info["server"]["include_root"]."/".$appname."/inc/class.".$classname.".inc.php");
} }
// if ($constructor_param == ""){ $obj = new $classname; }else{$obj = new $classname($constructor_param); } if ($constructor_param == ""){ $obj = new $classname; }else{$obj = new $classname($constructor_param); }
$obj = new $classname($constructor_param);
return $obj; return $obj;
} }