From 30ecfc76e7bc2ba5f1b830f60234f60d902a18df Mon Sep 17 00:00:00 2001 From: Michael Save Date: Mon, 19 Nov 2012 10:28:23 +1100 Subject: Added new events: lock and load-config --- inc/mod/pages.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'inc/mod') diff --git a/inc/mod/pages.php b/inc/mod/pages.php index caec6443..4f1ab73c 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -685,6 +685,11 @@ function mod_lock($board, $unlock, $post) { } header('Location: ?/' . sprintf($config['board_path'], $board) . $config['file_index'], true, $config['redirect_http']); + + if ($unlock) + event('unlock', $post); + else + event('lock', $post); } function mod_sticky($board, $unsticky, $post) { @@ -888,7 +893,7 @@ function mod_move($originBoard, $postID) { 'thread' => $postID, 'op' => false ); - + $post['body'] = $post['body_nomarkup'] = sprintf($config['mod']['shadow_mesage'], '>>>/' . $targetBoard . '/' . $newID); markup($post['body']); -- cgit v1.3