From 13cc3694e7324dc0e525732eea0097fbda6566e1 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sat, 16 Feb 2002 14:30:40 +0000 Subject: [PATCH] rework function to remove php3 error - need to test on php4 again --- phpgwapi/inc/class.hooks.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.hooks.inc.php b/phpgwapi/inc/class.hooks.inc.php index 8ba935009b..4d7758701e 100644 --- a/phpgwapi/inc/class.hooks.inc.php +++ b/phpgwapi/inc/class.hooks.inc.php @@ -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 {