fixes the preference pages for the different apps

This commit is contained in:
skeeter 2001-01-29 04:40:16 +00:00
parent f1bb2f6bef
commit 8345e26b12

View File

@ -565,6 +565,7 @@
reset ($phpgw_info["user"]["apps"]); reset ($phpgw_info["user"]["apps"]);
while ($permission = each($phpgw_info["user"]["apps"])) { while ($permission = each($phpgw_info["user"]["apps"])) {
if ($completed_hooks[$permission[0]] != True){ if ($completed_hooks[$permission[0]] != True){
$appname = $permission[0];
$f = $phpgw_info["server"]["server_root"] . "/" . $permission[0] . "/inc/hook_".$phpgw_info["flags"]["currentapp"]; $f = $phpgw_info["server"]["server_root"] . "/" . $permission[0] . "/inc/hook_".$phpgw_info["flags"]["currentapp"];
if ($location != ""){$f .= "_".$location.".inc.php";}else{$f .= ".inc.php"; } if ($location != ""){$f .= "_".$location.".inc.php";}else{$f .= ".inc.php"; }
if (file_exists($f)) {include($f);} if (file_exists($f)) {include($f);}