summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
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 d4aa303b..0f1bc195 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -354,6 +354,10 @@ class Post {
return $built;
}
+ public function ratio() {
+ return fraction($this->filewidth, $this->fileheight, ':');
+ }
+
public function build($index=false) {
global $board, $config;
@@ -473,6 +477,10 @@ class Thread {
return $built;
}
+ public function ratio() {
+ return fraction($this->filewidth, $this->fileheight, ':');
+ }
+
public function build($index=false, $isnoko50=false) {
global $board, $config, $debug;