summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-04-11 02:18:06 +1000
committerMichael Save <savetheinternet@tinyboard.org>2012-04-11 02:18:06 +1000
commit1b5f2b08f4703381d958560d0c8ab7503b203618 (patch)
tree76e22676281ac33c9106d745c58fda505b0e83b4 /mod.php
parentabd65b0c8a4c032ebe8ed6e65d0bb9d071acfd06 (diff)
moved $OP to $post['op']. post() now has one argument instead of two.
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/mod.php b/mod.php
index 01e8cd2d..a51ac227 100644
--- a/mod.php
+++ b/mod.php
@@ -2683,6 +2683,7 @@
if(!$post = $query->fetch()) {
error($config['error']['nonexistant']);
}
+ $post['op'] = true;
if($post['file']) {
$post['has_file'] = true;
@@ -2699,7 +2700,7 @@
if(!openBoard($targetBoard))
error($config['error']['noboard']);
- $newID = post($post, true);
+ $newID = post($post);
if($post['has_file']) {
$clone($file_src, sprintf($config['board_path'], $board['uri']) . $config['dir']['img'] . $post['file']);
@@ -2748,9 +2749,10 @@
$post['body'] = $post['body_nomarkup'];
}
}
+ $post['op'] = false;
$post['tracked_cites'] = markup($post['body'], true);
- $newIDs[$post['id']] = $newPostID = post($post, false);
+ $newIDs[$post['id']] = $newPostID = post($post);
if($post['has_file']) {
$clone($post['file_src'], sprintf($config['board_path'], $board['uri']) . $config['dir']['img'] . $post['file']);
@@ -2793,12 +2795,13 @@
'password' => '',
'has_file' => false,
// attach to original thread
- 'thread' => $postID
+ 'thread' => $postID,
+ 'op' => false
);
markup($post['body']);
- $botID = post($post, false);
+ $botID = post($post);
buildThread($postID);
header('Location: ?/' . sprintf($config['board_path'], $boardName) . $config['dir']['res'] . sprintf($config['file_page'], $postID) . '#' . $botID, true, $config['redirect_http']);