diff --git a/library/ajax/posts.php b/library/ajax/posts.php index 2a6c8dc0..62029f4f 100644 --- a/library/ajax/posts.php +++ b/library/ajax/posts.php @@ -97,7 +97,7 @@ switch($this->request['type']) { $message = "[quote]". $post['topic_title'] ."[/quote]\r"; } - if (mb_strlen($message, 'UTF-8') > $bb_cfg['max_post_length']) + if (mb_strlen($message, 'UTF-8') > 1000) { $this->response['redirect'] = make_url(POSTING_URL.'?mode=quote&p='. $post_id); } @@ -125,7 +125,7 @@ switch($this->request['type']) { $this->ajax_die($lang['EDIT_OWN_POSTS']); } - if ((mb_strlen($post['post_text'], 'UTF-8') > $bb_cfg['max_post_length']) || $post['post_attachment'] || ($post['topic_first_post_id'] == $post_id)) + if ((mb_strlen($post['post_text'], 'UTF-8') > 1000) || $post['post_attachment'] || ($post['topic_first_post_id'] == $post_id)) { $this->response['redirect'] = make_url(POSTING_URL.'?mode=editpost&p='. $post_id); } @@ -325,4 +325,4 @@ switch($this->request['type']) default: $this->ajax_die('empty type'); break; -} +} \ No newline at end of file diff --git a/library/config.php b/library/config.php index 7dffbd74..8c376b9e 100644 --- a/library/config.php +++ b/library/config.php @@ -467,7 +467,7 @@ $bb_cfg['user_signature_end'] = ''; // Это позволит и // Posts $bb_cfg['use_posts_cache'] = true; // if you switch from ON to OFF, you need to TRUNCATE `bb_posts_html` table $bb_cfg['posts_cache_days_keep'] = 14; -$bb_cfg['max_post_length'] = 2500; // Max symbols in post +$bb_cfg['max_post_length'] = 120000; // bytes $bb_cfg['use_ajax_posts'] = true; // Search