diff --git a/phpgwapi/inc/class.egw.inc.php b/phpgwapi/inc/class.egw.inc.php index 555ba77443..75e635e3fd 100644 --- a/phpgwapi/inc/class.egw.inc.php +++ b/phpgwapi/inc/class.egw.inc.php @@ -444,12 +444,12 @@ class egw extends egw_minimal /** * Link url generator * - * @param string='' $string The url the link is for + * @param string $string The url the link is for * @param string|array $extravars='' Extra params to be passed to the url * @param string $link_app=null if appname or true, some templates generate a special link-handler url * @return string The full url after processing */ - static function link($url = '', $extravars = '', $link_app=null) + static function link($url, $extravars = '', $link_app=null) { return $GLOBALS['egw']->framework->link($url, $extravars, $link_app); } @@ -461,7 +461,7 @@ class egw extends egw_minimal * @param string/array $extravars Extra params to be passed to the url * @return string The full url after processing */ - static function redirect_link($url = '',$extravars='') + static function redirect_link($url, $extravars='') { return $GLOBALS['egw']->framework->redirect_link($url, $extravars); } @@ -473,28 +473,12 @@ class egw extends egw_minimal * * @param string The url ro redirect to */ - static function redirect($url = '') + static function redirect($url) { - /* global $HTTP_ENV_VARS; */ - - $iis = @strpos($GLOBALS['HTTP_ENV_VARS']['SERVER_SOFTWARE'], 'IIS', 0); - // Determines whether the current output buffer should be flushed $do_flush = true; - if(!$url) - { - $url = $_SERVER['PHP_SELF']; - } - if($iis) - { - echo "\n\n
\n