summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-05-01 21:52:03 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-05-01 21:52:03 +0200
commite7797f36cf7fd98c825f497bc7f24015c95e8d22 (patch)
treecfad2e0f14d3b091bf8cb9f1ed2511ca47d8057f /application/models
parenta89147c24dfd41420dd03405995b417d7b32a597 (diff)
move file link generation from controller to view
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models')
-rw-r--r--application/models/file_mod.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/application/models/file_mod.php b/application/models/file_mod.php
index 6030aefdd..d91157a33 100644
--- a/application/models/file_mod.php
+++ b/application/models/file_mod.php
@@ -282,12 +282,7 @@ class File_mod extends CI_Model {
}
$this->data['title'] = htmlspecialchars($filedata['filename']);
- $this->data['raw_link'] = site_url($id);
- $this->data['new_link'] = site_url();
- $this->data['plain_link'] = site_url($id.'/plain');
- $this->data['auto_link'] = site_url($id).'/';
- $this->data['rmd_link'] = site_url($id.'/rmd');
- $this->data['delete_link'] = site_url("file/delete/".$id);
+ $this->data['id'] = $id;
header("Content-Type: text/html\n");