From e5103b543ad76c2809ed5ea15e55e0d04d7a36da Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Sat, 17 Aug 2013 04:11:24 +1000 Subject: [PATCH] fix aspect ratio displaying --- inc/display.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/inc/display.php b/inc/display.php index c573db44..23794052 100644 --- a/inc/display.php +++ b/inc/display.php @@ -348,6 +348,10 @@ class Post { return $built; } + public function ratio() { + return fraction($this->filewidth, $this->fileheight, ':'); + } + public function build($index=false) { global $board, $config; @@ -464,6 +468,10 @@ class Thread { return $built; } + public function ratio() { + return fraction($this->filewidth, $this->fileheight, ':'); + } + public function build($index=false) { global $board, $config, $debug;