summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-02-17 17:07:36 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-02-17 17:07:36 +1100
commit55f082a4217cdc584dea6a59157d7cd725c7e329 (patch)
tree83c5a8b9d4f938be23df67b0d2f6e713ba505cad /inc/display.php
parentf6d0bea5f77a96f6e04eb28fc7727ec9a615e16c (diff)
Show omitted image replies count
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/inc/display.php b/inc/display.php
index 9186b47a..023f5648 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -194,7 +194,6 @@
};
class Thread {
- public $omitted = 0;
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) {
global $config;
if(!isset($root)) $root = $config['root'];
@@ -215,6 +214,7 @@
$this->filesize = $filesize;
$this->filename = $filename;
$this->omitted = 0;
+ $this->omitted_images = 0;
$this->posts = Array();
$this->ip = $ip;
$this->sticky = $sticky;
@@ -348,7 +348,15 @@
$built .= $this->body .
// Omitted posts
- ($this->omitted ? '<span class="omitted">' . $this->omitted . ' post' . ($this->omitted==1?'':'s') . ' omitted. Click reply to view.</span>':'') .
+ ($this->omitted || $this->omitted_images? '<span class="omitted">' .
+ ($this->omitted ?
+ $this->omitted . ' post' . ($this->omitted==1?'':'s') .
+ ($this->omitted_images ? ' and ' : '')
+ :'') .
+ ($this->omitted_images ?
+ $this->omitted_images . ' image repl' . ($this->omitted_images==1?'y':'ies')
+ :'') .
+ ' omitted. Click reply to view.</span>':'') .
// End
'</div>';