diff --git a/inc/display.php b/inc/display.php index 6156e6cf..35110cd6 100644 --- a/inc/display.php +++ b/inc/display.php @@ -20,13 +20,14 @@ } function error($message) { + global $board; die(Element('page.html', Array( 'index'=>ROOT, 'title'=>'Error', 'subtitle'=>'An error has occured.', 'body'=>"
'; @@ -75,14 +78,14 @@ $built .= ' No.' . + ' href="' . ROOT . $board['dir'] . DIR_RES . $this->thread . '.html' . '#' . $this->id . '">No.' . // JavaScript cite 'id . ');"') . 'href="' . ($index?ROOT . DIR_RES . $this->thread . '.html' . '#q' . $this->id:'javascript:void(0);') . '">'.$this->id.'' . '
'; // File info if(!empty($this->file)) { - $built .= 'File: ' . $this->file . ' (' .
+ $built .= ' File: ' . $this->file . ' (' .
// Filesize
format_bytes($this->filesize) . ', ' .
// File dimensions
@@ -95,7 +98,7 @@
// Filename
$built .= ', ' . $this->filename . ') File: ' . $this->file . ' (' .
+ global $board;
+
+ $built = ' File: ' . $this->file . ' (' .
// Filesize
format_bytes($this->filesize) . ', ' .
// File dimensions
@@ -145,7 +150,7 @@
// Filename
$built .= ', ' . $this->filename . ') ';
@@ -170,11 +175,11 @@
$built .= ' No.' .
+ ' href="' . ROOT . $board['dir'] . DIR_RES . $this->id . '.html' . '#' . $this->id . '">No.' .
// JavaScript cite
- 'id . ');"') . 'href="' . ($index?ROOT . DIR_RES . $this->id . '.html' . '#q' . $this->id:'javascript:void(0);') . '">'.$this->id.'' .
+ 'id . ');"') . 'href="' . ($index?ROOT . $board['dir'] . DIR_RES . $this->id . '.html' . '#q' . $this->id:'javascript:void(0);') . '">'.$this->id.'' .
// [Reply]
- ($index ? '[Reply]' : '') .
+ ($index ? '[Reply]' : '') .
'