diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-17 04:11:24 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-17 04:11:24 +1000 |
| commit | e5103b543ad76c2809ed5ea15e55e0d04d7a36da (patch) | |
| tree | f0166b34279dd4da97bd2a708f75ca89650cd641 /inc/display.php | |
| parent | 885812749880c970505a51132704600690b5e2f5 (diff) | |
fix aspect ratio displaying
Diffstat (limited to 'inc/display.php')
| -rw-r--r-- | inc/display.php | 8 |
1 files changed, 8 insertions, 0 deletions
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; |
