summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-11-05 20:51:39 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-11-05 20:51:39 +1100
commit43b62acb44893fc62682e09a387ce77f102c06ea (patch)
tree859597bb234bde9c09d6cd737874f2f2e125387b /inc/display.php
parent247772323ecb035885778c8a6cc8f83f60482c30 (diff)
Stopped storing the full path name of the images in the database. Should make it easier/possible to move the imageboard later.
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/display.php b/inc/display.php
index 132dcac5..71ecface 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -81,7 +81,7 @@
// File info
if(!empty($this->file)) {
- $built .= '<p class="fileinfo">File: <a href="' . ROOT . $this->file .'">' . basename($this->file) . '</a> <span class="unimportant">(' .
+ $built .= '<p class="fileinfo">File: <a href="' . ROOT . DIR_IMG . $this->file .'">' . $this->file . '</a> <span class="unimportant">(' .
// Filesize
format_bytes($this->filesize) . ', ' .
// File dimensions
@@ -94,7 +94,7 @@
// Filename
$built .= ', ' . $this->filename . ')</span></p>' .
// Thumbnail
- '<a href="' . ROOT . $this->file.'"><img src="' . ROOT . $this->thumb.'" style="width:'.$this->thumbx.'px;height:'.$this->thumby.'px;" /></a>';
+ '<a href="' . ROOT . DIR_IMG . $this->file.'"><img src="' . ROOT . DIR_THUMB . $this->thumb.'" style="width:'.$this->thumbx.'px;height:'.$this->thumby.'px;" /></a>';
}
// Body
@@ -131,7 +131,7 @@
public function build($index=false) {
- $built = '<p class="fileinfo">File: <a href="' . ROOT . $this->file .'">' . basename($this->file) . '</a> <span class="unimportant">(' .
+ $built = '<p class="fileinfo">File: <a href="' . ROOT . DIR_IMG . $this->file .'">' . $this->file . '</a> <span class="unimportant">(' .
// Filesize
format_bytes($this->filesize) . ', ' .
// File dimensions
@@ -144,7 +144,7 @@
// Filename
$built .= ', ' . $this->filename . ')</span></p>' .
// Thumbnail
- '<a href="' . ROOT . $this->file.'"><img src="' . ROOT . $this->thumb.'" style="width:'.$this->thumbx.'px;height:'.$this->thumby.'px;" /></a>';
+ '<a href="' . ROOT . DIR_IMG . $this->file.'"><img src="' . ROOT . DIR_THUMB . $this->thumb.'" style="width:'.$this->thumbx.'px;height:'.$this->thumby.'px;" /></a>';
$built .= '<div class="post op"><p class="intro"' . (!$index?' id="' . $this->id . '"':'') . '>';