Major config.php cleanup and a few minor misc fixes.

This commit is contained in:
Michael Foster
2013-08-02 20:52:58 -04:00
parent 9e7fbf927c
commit 4fce9b63ae
10 changed files with 605 additions and 527 deletions

View File

@@ -132,10 +132,10 @@ class Filter {
function do_filters(array $post) {
global $config;
if (!isset($config['flood_filters']))
if (!isset($config['filters']))
return;
foreach ($config['flood_filters'] as $arr) {
foreach ($config['filters'] as $arr) {
$filter = new Filter($arr);
if ($filter->check($post))
$filter->action();