diff options
Diffstat (limited to 'system/application/models/file_mod.php')
-rw-r--r-- | system/application/models/file_mod.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); |