mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
php3 fix
This commit is contained in:
parent
051325b3d9
commit
94ec5b8661
@ -111,9 +111,8 @@
|
||||
/* Load selected accounts class */
|
||||
if (empty($phpgw_info["server"]["account_repository"])){$phpgw_info["server"]["account_repository"] = $phpgw_info["server"]["auth_type"];}
|
||||
$this->accounts = CreateObject("phpgwapi.accounts");
|
||||
$this->preferences = CreateObject("phpgwapi.preferences", 0);
|
||||
$this->preferences = CreateObject("phpgwapi.preferences");
|
||||
$this->session = CreateObject("phpgwapi.sessions");
|
||||
|
||||
if ($phpgw_info["flags"]["currentapp"] == "login") {
|
||||
$log = explode("@",$login);
|
||||
$this->preferences = CreateObject("phpgwapi.preferences", $log[0]);
|
||||
|
@ -29,7 +29,7 @@
|
||||
var $account_id;
|
||||
var $preference;
|
||||
|
||||
function preferences($account_id)
|
||||
function preferences($account_id = 0)
|
||||
{
|
||||
global $phpgw;
|
||||
// echo "Account ID (Initializing) = ".$account_id."<br>\n";
|
||||
|
@ -45,8 +45,7 @@
|
||||
$phpgw_info["flags"]["included_classes"][$classname] = True;
|
||||
include($phpgw_info["server"]["include_root"]."/".$appname."/inc/class.".$classname.".inc.php");
|
||||
}
|
||||
// if ($constructor_param == ""){ $obj = new $classname; }else{$obj = new $classname($constructor_param); }
|
||||
$obj = new $classname($constructor_param);
|
||||
if ($constructor_param == ""){ $obj = new $classname; }else{$obj = new $classname($constructor_param); }
|
||||
return $obj;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user