1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 01:10:51 +01:00

Added new events: lock and load-config

This commit is contained in:
Michael Save 2012-11-19 10:28:23 +11:00
parent 209f061eed
commit 30ecfc76e7
2 changed files with 7 additions and 1 deletions

View File

@ -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) {

View File

@ -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']);