mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
testing out new hooks option
This commit is contained in:
parent
798ac55a33
commit
b5e78d4ce4
@ -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."<br>\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"])){
|
||||
|
Loading…
Reference in New Issue
Block a user