Browse Source

Added new events: lock and load-config

pull/40/head
Michael Save 12 years ago
parent
commit
30ecfc76e7
  1. 1
      inc/functions.php
  2. 5
      inc/mod/pages.php

1
inc/functions.php

@ -190,6 +190,7 @@ function loadConfig() {
require_once 'inc/lib/recaptcha/recaptchalib.php'; require_once 'inc/lib/recaptcha/recaptchalib.php';
if ($config['cache']['enabled']) if ($config['cache']['enabled'])
require_once 'inc/cache.php'; require_once 'inc/cache.php';
event('load-config');
} }
function basic_error_function_because_the_other_isnt_loaded_yet($message, $priority = true) { function basic_error_function_because_the_other_isnt_loaded_yet($message, $priority = true) {

5
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']); 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) { function mod_sticky($board, $unsticky, $post) {

Loading…
Cancel
Save