From: kink Date: Mon, 25 Jun 2007 15:24:42 +0000 (+0000) Subject: drop obsolete parameter, thanks Tomas Kuliavas for finding X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=d9f8b0cca0ffde39e93603d3f86befaf2079113f;ds=sidebyside drop obsolete parameter, thanks Tomas Kuliavas for finding git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12466 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/redirect.php b/src/redirect.php index 4db7733b..bfa88bef 100644 --- a/src/redirect.php +++ b/src/redirect.php @@ -129,11 +129,9 @@ $attachment_common_types_parsed = array(); sqsession_register($attachment_common_types, 'attachment_common_types'); sqsession_register($attachment_common_types_parsed, 'attachment_common_types_parsed'); -$debug = false; - if ( sqgetGlobalVar('HTTP_ACCEPT', $http_accept, SQ_SERVER) && !isset($attachment_common_types_parsed[$http_accept]) ) { - attachment_common_parse($http_accept, $debug); + attachment_common_parse($http_accept); } /* Complete autodetection of Javascript. */ @@ -169,7 +167,7 @@ exit; /* --------------------- end main ----------------------- */ -function attachment_common_parse($str, $debug) { +function attachment_common_parse($str) { global $attachment_common_types, $attachment_common_types_parsed; /*