diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-11-19 10:28:23 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-11-19 10:28:23 +1100 |
| commit | 30ecfc76e7bc2ba5f1b830f60234f60d902a18df (patch) | |
| tree | 37b93ffca90710a3524646e43c03b3eedc7a20a5 | |
| parent | 209f061eed334eda413317d462d0b52a24a0db58 (diff) | |
Added new events: lock and load-config
| -rw-r--r-- | inc/functions.php | 1 | ||||
| -rw-r--r-- | inc/mod/pages.php | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index dec7a68a..a7b6b434 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -190,6 +190,7 @@ function loadConfig() { require_once 'inc/lib/recaptcha/recaptchalib.php'; if ($config['cache']['enabled']) require_once 'inc/cache.php'; + event('load-config'); } function basic_error_function_because_the_other_isnt_loaded_yet($message, $priority = true) { 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']); |
