summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-17 04:11:24 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-17 04:11:24 +1000
commite5103b543ad76c2809ed5ea15e55e0d04d7a36da (patch)
treef0166b34279dd4da97bd2a708f75ca89650cd641 /inc/display.php
parent885812749880c970505a51132704600690b5e2f5 (diff)
fix aspect ratio displaying
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php8
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;