From: Marcel Werk Date: Tue, 10 Apr 2012 19:45:09 +0000 (+0200) Subject: Fixed small issue X-Git-Tag: 2.0.0_Beta_1~1160 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9306a15ca639967928031d1b7c9addd1d1fcdec0;p=GitHub%2FWoltLab%2FWCF.git Fixed small issue --- diff --git a/wcfsetup/install/files/lib/util/FileUtil.class.php b/wcfsetup/install/files/lib/util/FileUtil.class.php index 052874817f..bcddbd326f 100644 --- a/wcfsetup/install/files/lib/util/FileUtil.class.php +++ b/wcfsetup/install/files/lib/util/FileUtil.class.php @@ -432,9 +432,9 @@ final class FileUtil { } // build and send the http request. $request = "GET ".$path.(!empty($parsedUrl['query']) ? '?'.$parsedUrl['query'] : '')." HTTP/1.0\r\n"; - $request .= "User-Agent: HTTP.PHP (FileUtil.class.php; WoltLab Community Framework/".WCF_VERSION."; ".WCF::getLanguage()->getLanguageCode().")\r\n"; + $request .= "User-Agent: HTTP.PHP (FileUtil.class.php; WoltLab Community Framework/".WCF_VERSION."; ".WCF::getLanguage()->languageCode.")\r\n"; $request .= "Accept: */*\r\n"; - $request .= "Accept-Language: ".WCF::getLanguage()->getLanguageCode()."\r\n"; + $request .= "Accept-Language: ".WCF::getLanguage()->languageCode."\r\n"; $request .= "Host: ".$host."\r\n"; $request .= "Connection: Close\r\n\r\n"; $remoteFile->puts($request);