From 55f082a4217cdc584dea6a59157d7cd725c7e329 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 17 Feb 2011 17:07:36 +1100 Subject: Show omitted image replies count --- inc/display.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'inc/display.php') 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 ? '' . $this->omitted . ' post' . ($this->omitted==1?'':'s') . ' omitted. Click reply to view.':'') . + ($this->omitted || $this->omitted_images? '' . + ($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.':'') . // End ''; -- cgit v1.3