diff options
| author | czaks <marcin@6irc.net> | 2013-08-16 16:06:54 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-08-16 16:06:54 -0400 |
| commit | ca565d07c2d0157a6b7554fd26cd2157359a2791 (patch) | |
| tree | dd28568376415a354f701a779e7365a33de0494c /inc/display.php | |
| parent | d0c72927a6daaa678e8284ec55725ded99df4ccc (diff) | |
| parent | e5103b543ad76c2809ed5ea15e55e0d04d7a36da (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
inc/display.php
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 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; |
