From 0d45fbc7992b8e55bc4a9df079f9ae0ed3b85e64 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Sat, 17 Aug 2013 03:39:58 +1000 Subject: Add \n before post modifiers. Add flag alt for country flags. --- inc/mod/pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 457f905b..fe55b513 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1283,7 +1283,7 @@ function mod_edit_post($board, $edit_raw_html, $postID) { $query->bindValue(':subject', $_POST['subject']); $query->bindValue(':body', $_POST['body']); if ($edit_raw_html) { - $body_nomarkup = $_POST['body'] . '1'; + $body_nomarkup = $_POST['body'] . "\n1"; $query->bindValue(':body_nomarkup', $body_nomarkup); } $query->execute() or error(db_error($query)); -- cgit v1.3 From e5103b543ad76c2809ed5ea15e55e0d04d7a36da Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Sat, 17 Aug 2013 04:11:24 +1000 Subject: fix aspect ratio displaying --- inc/display.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'inc') 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; -- cgit v1.3