mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
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
This commit is contained in:
commit
e7da931d3a
7 changed files with 8 additions and 8 deletions
|
@ -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();
|
||||
|
|
|
@ -67,7 +67,7 @@ onload_functions.push('subPanels()');
|
|||
|
||||
<dl>
|
||||
<dt><label for="subject">{L_SPLIT_SUBJECT}:</label></dt>
|
||||
<dd><input type="text" name="subject" id="subject" size="45" maxlength="64" tabindex="2" value="{SPLIT_SUBJECT}" title="{L_SPLIT_SUBJECT}" class="inputbox" /></dd>
|
||||
<dd><input type="text" name="subject" id="subject" size="45" maxlength="124" tabindex="2" value="{SPLIT_SUBJECT}" title="{L_SPLIT_SUBJECT}" class="inputbox" /></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><label>{L_SPLIT_FORUM}:</label></dt>
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
<!-- IF S_POST_ACTION or S_PRIVMSGS or S_EDIT_DRAFT -->
|
||||
<dl style="clear: left;">
|
||||
<dt><label for="subject">{L_SUBJECT}:</label></dt>
|
||||
<dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
|
||||
<dd><input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->120<!-- ELSE -->124<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" /></dd>
|
||||
</dl>
|
||||
<!-- IF CAPTCHA_TEMPLATE and S_CONFIRM_CODE -->
|
||||
<!-- DEFINE $CAPTCHA_TAB_INDEX = 3 -->
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<fieldset class="fields1">
|
||||
<dl style="clear: left;">
|
||||
<dt><label for="subject">{L_SUBJECT}:</label></dt>
|
||||
<dd><input type="text" name="subject" id="subject" size="45" maxlength="64" tabindex="2" value="{SUBJECT}" class="inputbox autowidth" /></dd>
|
||||
<dd><input type="text" name="subject" id="subject" size="45" maxlength="124" tabindex="2" value="{SUBJECT}" class="inputbox autowidth" /></dd>
|
||||
</dl>
|
||||
<div id="message-box">
|
||||
<textarea style="height: 9em;" name="message" rows="7" cols="76" tabindex="3" class="inputbox"></textarea>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="row1" nowrap="nowrap"><span class="gen">{L_SPLIT_SUBJECT}</span></td>
|
||||
<td class="row2" colspan="2"><input class="post" style="width: 350px" type="text" size="35" maxlength="64" name="subject" value="{SPLIT_SUBJECT}" /></td>
|
||||
<td class="row2" colspan="2"><input class="post" style="width: 350px" type="text" size="35" maxlength="124" name="subject" value="{SPLIT_SUBJECT}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1" nowrap="nowrap"><span class="gen">{L_SPLIT_FORUM}</span></td>
|
||||
|
|
|
@ -173,7 +173,7 @@
|
|||
|
||||
<tr>
|
||||
<td class="row1" width="22%"><b class="genmed">{L_SUBJECT}:</b></td>
|
||||
<td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}" /></td>
|
||||
<td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->120<!-- ELSE -->124<!-- ENDIF -->" tabindex="2" value="{SUBJECT}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1" valign="top"><b class="genmed">{L_MESSAGE_BODY}:</b><br /><span class="gensmall">{L_MESSAGE_BODY_EXPLAIN} </span><br /><br />
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="row1" width="22%"><b class="genmed">{L_SUBJECT}:</b></td>
|
||||
<td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="subject" size="45" maxlength="64" tabindex="2" value="{SUBJECT}" /></td>
|
||||
<td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="subject" size="45" maxlength="124" tabindex="2" value="{SUBJECT}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1" width="22%"><b class="genmed">{L_MESSAGE}:</b></td>
|
||||
|
|
Loading…
Add table
Reference in a new issue