summaryrefslogtreecommitdiffstats
path: root/system/application/models
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-03-19 22:30:03 +0100
committerFlorian Pritz <bluewind@xssn.at>2010-03-19 22:33:20 +0100
commite0dfaee5b598f5e617581de158fb9abb0bfdfe80 (patch)
tree9bc5f9c546c6a95d806153992de3895574b761cb /system/application/models
parentf94969927d968b488dd4b86016b75f9abe341320 (diff)
remove useless config option
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/application/models')
-rw-r--r--system/application/models/file_mod.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php
index 626ae431c..69494259b 100644
--- a/system/application/models/file_mod.php
+++ b/system/application/models/file_mod.php
@@ -97,9 +97,9 @@ class File_mod extends Model {
$data = array();
if ($mode) {
- $data['url'] = site_url($this->config->item('paste_download_url').$id.'/'.$mode);
+ $data['url'] = site_url().$id.'/'.$mode;
} else {
- $data['url'] = site_url($this->config->item('paste_download_url').$id).'/';
+ $data['url'] = site_url().$id.'/';
}
if (strstr($_SERVER['HTTP_USER_AGENT'], 'libcurl')) {
@@ -168,7 +168,7 @@ class File_mod extends Model {
&& filesize($file) <= $this->config->item('upload_max_text_size')
) {
$data['title'] = $filedata['filename'];
- $data['raw_link'] = site_url($this->config->item('paste_download_url').$id);
+ $data['raw_link'] = site_url().$id;
header("Content-Type: text/html\n");
echo $this->load->view('file/html_header', $data, true);
// only rewrite if it's fast