From e601f848718b576d4f2aabfb8e14e4b9ca35e5a0 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 12 Jun 2010 12:41:54 +0200 Subject: add support for client update warnings Signed-off-by: Florian Pritz --- system/application/models/file_mod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/application/models') diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php index 0541d5d2b..faa9740dd 100644 --- a/system/application/models/file_mod.php +++ b/system/application/models/file_mod.php @@ -104,7 +104,7 @@ class File_mod extends Model { $data['url'] = site_url($id).'/'; } - if (strstr($_SERVER['HTTP_USER_AGENT'], 'libcurl')) { + if ($this->var->cli_client) { echo $data['url']."\n"; } else { $this->load->view('file/header', $data); -- cgit v1.2.3-24-g4f1b