forked from leftypol/leftypol
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts: inc/display.php
This commit is contained in:
commit
ca565d07c2
5 changed files with 16 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -1388,7 +1388,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'] . '<tinyboard raw html>1</tinyboard>';
|
||||
$body_nomarkup = $_POST['body'] . "\n<tinyboard raw html>1</tinyboard>";
|
||||
$query->bindValue(':body_nomarkup', $body_nomarkup);
|
||||
}
|
||||
$query->execute() or error(db_error($query));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue