summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-10-23 22:43:55 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-10-24 15:27:59 +0200
commit5ecf89925b015d087501e9e9e6ed5eb7268c6ee4 (patch)
tree24525dff151db8626d6d8d936bca53aae2f8e6f7
parentcbcdca663dc4bd7bd5a1a2461273af95383b12fe (diff)
client download location moved
Signed-off-by: Florian Pritz <bluewind@xssn.at>
-rw-r--r--system/application/controllers/file.php2
-rw-r--r--system/application/models/file_mod.php6
2 files changed, 6 insertions, 2 deletions
diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php
index 6d99312b8..fb74dbf1c 100644
--- a/system/application/controllers/file.php
+++ b/system/application/controllers/file.php
@@ -54,7 +54,7 @@ class File extends Controller {
$data['title'] = 'Upload';
$data['small_upload_size'] = $this->config->item('small_upload_size');
$data['max_upload_size'] = $this->config->item('upload_max_size');
- $data['client_link'] = base_url().'data/client/fb-'.$this->var->latest_client;
+ $data['client_link'] = base_url().'data/client/fb-'.$this->var->latest_client.'.tar.gz';
$this->load->view('file/header', $data);
$this->load->view('file/upload_form', $data);
diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php
index 444c091b2..b93aab354 100644
--- a/system/application/models/file_mod.php
+++ b/system/application/models/file_mod.php
@@ -195,7 +195,11 @@ class File_mod extends Model {
$data['rmd_link'] = site_url($id.'/rmd');
header("Content-Type: text/html\n");
- $data['current_highlight'] = $mode;
+ if ($mode) {
+ $data['current_highlight'] = $mode;
+ } else {
+ $data['current_highlight'] = $this->mime2extension($type);
+ }
echo $this->load->view('file/html_header', $data, true);
$this->load->library("MemcacheLibrary");
if (! $cached = $this->memcachelibrary->get($filedata['hash'].'_'.$mode)) {