diff options
author | Urban Müller | 2013-07-12 16:04:25 +0000 |
---|---|---|
committer | Urban Müller | 2013-07-12 16:04:25 +0000 |
commit | 9353e3407f798311ffc6c78ac2e0f21e3bb4b0c8 (patch) | |
tree | 5c53913d198eed00a6e429f2a89470096039d245 /it_url.class | |
parent | c0c241cddb70df0388558b459e1b9cee70ad049a (diff) | |
download | itools-9353e3407f798311ffc6c78ac2e0f21e3bb4b0c8.tar.gz itools-9353e3407f798311ffc6c78ac2e0f21e3bb4b0c8.tar.bz2 itools-9353e3407f798311ffc6c78ac2e0f21e3bb4b0c8.zip |
shorter code
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/it_url.class b/it_url.class index 2ec329e..3fcd243 100644 --- a/it_url.class +++ b/it_url.class @@ -297,11 +297,9 @@ function request($p=array()) $p['headers'] = (array)$p['headers'] + array( 'Host' => $url->realhostname . ($url->port != 80 ? ":" . $url->port : ''), 'User-Agent' => "Mozilla/4.0 (compatible; MSIE 7.0; ITools)", + 'Accept-Language' => $p['headers']['Accept-Language'] ?: T_lang(), # can prevent loading of it_text ); - if (!$p['headers']['Accept-Language']) - $p['headers']['Accept-Language'] = T_lang(); - if (is_int($p['filemtime'])) $p['headers']['If-Modified-Since'] = date("r", $p['filemtime']); |