diff --git a/phpgwapi/inc/common_functions.inc.php b/phpgwapi/inc/common_functions.inc.php index d44af5181e..60d2dfba4b 100755 --- a/phpgwapi/inc/common_functions.inc.php +++ b/phpgwapi/inc/common_functions.inc.php @@ -733,13 +733,7 @@ if (!method_exists($GLOBALS[$classname],$functionname)) { - $module = $_GET['menuaction'] ? $_GET['menuaction'] : str_replace(PHPGW_SERVER_ROOT,'',$_SERVER['SCRIPT_FILENAME']); - - echo "

$module: no methode '$functionname' in class '$classname'

\n"; - if (function_exists('debug_backtrace')) - { - echo '

Debug-backtrace

'.print_r(debug_backtrace(),True).'
'; - } + echo "

".functin_backtrace().": no methode '$functionname' in class '$classname'

\n"; return False; } if ((is_array($functionparams) || $functionparams != '_UNDEF_') && ($functionparams || $functionparams != 'True')) @@ -1119,8 +1113,7 @@ /*! @function function_backtrace - @abstract returns the backtrace of the calling functions - @param $default default to return if the function debug_backtrace is not availible (php<4.3) + @abstract backtrace of the calling functions for php4.3+ else menuaction/scriptname @author ralfbecker @return function-names separated by slashes (beginning with the calling function not this one) */ @@ -1137,7 +1130,7 @@ } return implode('/',$ret); } - return $default; + return $_GET['menuaction'] ? $_GET['menuaction'] : str_replace(PHPGW_SERVER_ROOT,'',$_SERVER['SCRIPT_FILENAME']); } ?>