mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-12 19:14:57 +01:00
rework function to remove php3 error - need to test on php4 again
This commit is contained in:
parent
61c9a64dd0
commit
13cc3694e7
@ -160,7 +160,7 @@
|
||||
/*!
|
||||
@function single_tpl
|
||||
@abstract call the hooks for a single application, return output from the hook
|
||||
@discussion This is only used so far for the wcm app (website hook) - Milosch.
|
||||
@discussion This is a BROKEN function on php3... wcm is not using it anymore
|
||||
@param $location hook location - required
|
||||
@param $appname application name - optional
|
||||
*/
|
||||
@ -178,7 +178,8 @@
|
||||
if(@file_exists($f) &&
|
||||
( $GLOBALS['phpgw_info']['user']['apps'][$appname] || (($no_permission_check || $location == 'config' || $appname == 'phpgwapi') && $appname)) )
|
||||
{
|
||||
return include($f);
|
||||
eval('$retval = include(\$f);');
|
||||
return $retval;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user