mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
fixed bug that wasnt loading up default if admin gave users the chioce, and they didnt make one
This commit is contained in:
parent
a8062d13db
commit
39e22a5202
@ -332,7 +332,12 @@
|
||||
global $phpgw_info;
|
||||
if ($appname == ""){$appname = $phpgw_info["flags"]["currentapp"];}
|
||||
if ($appname == "home" || $appname == "logout" || $appname == "login"){$appname = "phpgwapi";}
|
||||
if (empty($phpgw_info["server"]["template_set"])){$phpgw_info["server"]["template_set"] = "default";}
|
||||
|
||||
if ($phpgw_info["server"]["template_set"] == "user_choice" && isset($phpgw_info["user"]["preferences"]["template_set"])){
|
||||
$phpgw_info["server"]["template_set"] = $phpgw_info["user"]["preferences"]["template_set"];
|
||||
}elseif ($phpgw_info["server"]["template_set"] == "user_choice" || empty($phpgw_info["server"]["template_set"])){
|
||||
$phpgw_info["server"]["template_set"] = "default";
|
||||
}
|
||||
|
||||
$tpldir = $phpgw_info["server"]["server_root"]."/".$appname."/templates/".$phpgw_info["server"]["template_set"];
|
||||
$tpldir_default = $phpgw_info["server"]["server_root"]."/".$appname."/templates/default";
|
||||
|
@ -97,8 +97,8 @@
|
||||
|
||||
$phpgw_info["server"]["app_root"] = $phpgw->common->get_app_dir();
|
||||
$phpgw_info["server"]["app_inc"] = $phpgw->common->get_inc_dir();
|
||||
$phpgw_info["server"]["app_images"] = $phpgw->common->get_image_path();
|
||||
$phpgw_info["server"]["app_tpl"] = $phpgw->common->get_tpl_dir();
|
||||
$phpgw_info["server"]["app_images"] = $phpgw->common->get_image_path();
|
||||
|
||||
/* ********This sets the user variables******** */
|
||||
$phpgw_info["user"]["private_dir"] = $phpgw_info["server"]["files_dir"] . "/users/"
|
||||
|
Loading…
Reference in New Issue
Block a user