From 1b5f2b08f4703381d958560d0c8ab7503b203618 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Wed, 11 Apr 2012 02:18:06 +1000 Subject: moved $OP to $post['op']. post() now has one argument instead of two. --- mod.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'mod.php') 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']); -- cgit v1.3