fix aspect ratio displaying

This commit is contained in:
Michael Foster 2013-08-17 04:11:24 +10:00
parent 8858127498
commit e5103b543a

View File

@ -348,6 +348,10 @@ class Post {
return $built; return $built;
} }
public function ratio() {
return fraction($this->filewidth, $this->fileheight, ':');
}
public function build($index=false) { public function build($index=false) {
global $board, $config; global $board, $config;
@ -464,6 +468,10 @@ class Thread {
return $built; return $built;
} }
public function ratio() {
return fraction($this->filewidth, $this->fileheight, ':');
}
public function build($index=false) { public function build($index=false) {
global $board, $config, $debug; global $board, $config, $debug;