mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Revert "Maked max post length configurable (#174)"
This reverts commit de09245b9a
.
This commit is contained in:
parent
699cd46083
commit
96af2b9be1
@ -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;
|
||||
}
|
||||
}
|
@ -467,7 +467,7 @@ $bb_cfg['user_signature_end'] = '</div>'; // Это позволит и
|
||||
// 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
|
||||
|
Loading…
Reference in New Issue
Block a user