diff --git a/phpgwapi/phpgw_common.inc.php b/phpgwapi/phpgw_common.inc.php index 542a039ff5..c30e343896 100644 --- a/phpgwapi/phpgw_common.inc.php +++ b/phpgwapi/phpgw_common.inc.php @@ -626,7 +626,6 @@ global $phpgw, $phpgw_info; if ($order == ""){$order[] = $phpgw_info["flags"]["currentapp"];} -// if ($order == ""){$order = Array();} /* First include the apps own hook file */ reset ($order); while (list ($key, $appname) = each ($order)){ @@ -637,12 +636,6 @@ } $processed = 'if ($appname != "" '.$processed.'){'; echo "processed: ".$processed."
\n"; - $f = $phpgw_info["server"]["server_root"] . "/" . $appname . "/inc/hook_".$phpgw_info["flags"]["currentapp"]; - - - if ($location != ""){$f .= "_".$location.".inc.php";}else{$f .= ".inc.php";} - if (file_exists($f)) {include($f);} - /* Then add the rest */ reset ($phpgw_info["user"]["app_perms"]); while (list (, $appname) = each ($phpgw_info["user"]["app_perms"])){