From: Tim Starling Date: Sat, 10 Jan 2004 01:28:32 +0000 (+0000) Subject: Some systems do not have getallheaders() X-Git-Tag: 1.3.0beta1~1180 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=4fb335151ab77cf42d743c2d2f71ab5c078e296e;p=lhc%2Fweb%2Fwiklou.git Some systems do not have getallheaders() --- diff --git a/wiki.phtml b/wiki.phtml index 962a97efb5..adcfe63f45 100644 --- a/wiki.phtml +++ b/wiki.phtml @@ -17,13 +17,17 @@ wfProfileIn( "main-misc-setup" ); OutputPage::setEncodings(); # Not really used yet # Useful debug output -wfDebug( "\nStart request\n" ); -wfDebug( "$REQUEST_METHOD $REQUEST_URI\n" ); -$headers = getallheaders(); -foreach ($headers as $name => $value) { - wfDebug( "$name: $value\n" ); +if ( function_exists( "getallheaders" ) ) { + wfDebug( "\nStart request\n" ); + wfDebug( "$REQUEST_METHOD $REQUEST_URI\n" ); + $headers = getallheaders(); + foreach ($headers as $name => $value) { + wfDebug( "$name: $value\n" ); + } + wfDebug( "\n" ); +} else { + wfDebug( "$REQUEST_METHOD $REQUEST_URI\n" ); } -wfDebug( "\n" ); # Query string fields #