From b5e78d4ce4b1392f09eb42d95797d38601c519a4 Mon Sep 17 00:00:00 2001 From: seek3r Date: Wed, 20 Dec 2000 07:51:53 +0000 Subject: [PATCH] testing out new hooks option --- phpgwapi/phpgw_common.inc.php | 7 ------- 1 file changed, 7 deletions(-) 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"])){