From 9306a15ca639967928031d1b7c9addd1d1fcdec0 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 10 Apr 2012 21:45:09 +0200 Subject: [PATCH] Fixed small issue --- wcfsetup/install/files/lib/util/FileUtil.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1