summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;