diff options
| author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-06-18 20:55:01 -0400 |
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-06-18 20:55:01 -0400 |
| commit | e7da931d3a5c5e4e6b00283c26e62535032cc9b5 (patch) | |
| tree | 46e33a778b887440f24c9ba4e045f75d22548cdd /phpBB/includes/functions_posting.php | |
| parent | 13c4db8255b2ed16f86b0b5da6fee0abd98e356c (diff) | |
| parent | a41f86f2f724c31b2bb6e55d278b65e2660697c1 (diff) | |
| download | forums-e7da931d3a5c5e4e6b00283c26e62535032cc9b5.tar forums-e7da931d3a5c5e4e6b00283c26e62535032cc9b5.tar.gz forums-e7da931d3a5c5e4e6b00283c26e62535032cc9b5.tar.bz2 forums-e7da931d3a5c5e4e6b00283c26e62535032cc9b5.tar.xz forums-e7da931d3a5c5e4e6b00283c26e62535032cc9b5.zip | |
Merge PR #571 branch 'unknownbliss/ticket/10640' into develop
* unknownbliss/ticket/10640:
[ticket/10640] Change subject length in mcp in subsilver
[ticket/10640] Change subject length in MCP
[ticket/10640] Do not change default value of truncate_string()
[ticket/10640] Change maximum subject length
Diffstat (limited to 'phpBB/includes/functions_posting.php')
| -rw-r--r-- | phpBB/includes/functions_posting.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index f77f54679f..c549f99091 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -1657,8 +1657,8 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u // First of all make sure the subject and topic title are having the correct length. // To achieve this without cutting off between special chars we convert to an array and then count the elements. - $subject = truncate_string($subject); - $data['topic_title'] = truncate_string($data['topic_title']); + $subject = truncate_string($subject, 120); + $data['topic_title'] = truncate_string($data['topic_title'], 120); // Collect some basic information about which tables and which rows to update/insert $sql_data = $topic_row = array(); |
