diff --git a/inc/config.php b/inc/config.php index 9e8fdb59..61379574 100644 --- a/inc/config.php +++ b/inc/config.php @@ -496,7 +496,7 @@ // Maximum post body length. $config['max_body'] = 1800; // Maximum number of lines allowed in a post. - $config['max_lines'] = 100; + $config['maximum_lines'] = 100; // Maximum number of post body lines to show on the index page. $config['body_truncate'] = 15; // Maximum number of characters to show on the index page. diff --git a/post.php b/post.php index c0898cdd..cfea1207 100644 --- a/post.php +++ b/post.php @@ -730,7 +730,7 @@ if (isset($_POST['delete'])) { error(sprintf($config['error']['toolong'], 'subject')); if (!$mod && mb_strlen($post['body']) > $config['max_body']) error($config['error']['toolong_body']); - if (!$mod && substr_count($post['body'], "\n") >= $config['max_lines']) + if (!$mod && substr_count($post['body'], "\n") >= $config['maximum_lines']) error($config['error']['toomanylines']); if (mb_strlen($post['password']) > 20) error(sprintf($config['error']['toolong'], 'password'));