Fixed small issue
authorMarcel Werk <burntime@woltlab.com>
Tue, 10 Apr 2012 19:45:09 +0000 (21:45 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 10 Apr 2012 19:45:09 +0000 (21:45 +0200)
wcfsetup/install/files/lib/util/FileUtil.class.php

index 052874817fb081c0f54cf0f0c4a5c4ab746938a0..bcddbd326f10b9946527ff7d045576804f455c73 100644 (file)
@@ -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);