diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-18 01:13:56 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-18 01:13:56 +1100 |
| commit | cbdc3fd8e817dfa5429c8f8fdcb587f2c2b740b6 (patch) | |
| tree | 1036c29c04bbc2f166ecf927e0c61ca048b8bd5c /inc/display.php | |
| parent | 556e5bdcea99a443e9fba729f835be7cf488036f (diff) | |
Fixed display of OP in IP page
Diffstat (limited to 'inc/display.php')
| -rw-r--r-- | inc/display.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/display.php b/inc/display.php index 023f5648..871b2a9d 100644 --- a/inc/display.php +++ b/inc/display.php @@ -194,7 +194,7 @@ }; class Thread { - public function __construct($id, $subject, $email, $name, $trip, $body, $time, $thumb, $thumbx, $thumby, $file, $filex, $filey, $filesize, $filename, $ip, $sticky, $locked, $root=null, $mod=false) { + public function __construct($id, $subject, $email, $name, $trip, $body, $time, $thumb, $thumbx, $thumby, $file, $filex, $filey, $filesize, $filename, $ip, $sticky, $locked, $root=null, $mod=false, $hr=true) { global $config; if(!isset($root)) $root = $config['root']; @@ -221,6 +221,7 @@ $this->locked = $locked; $this->root = $root; $this->mod = $mod; + $this->hr = $hr; if($this->mod) // Fix internal links @@ -366,7 +367,7 @@ $built .= $post->build($index); } - $built .= '<br class="clear"/><hr/>'; + $built .= '<br class="clear"/>' . ($this->hr ? '<hr/>' : ''); return $built; } }; |
