Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-05-28 11:26:33 +02:00
commit de3e9e7baf
3 changed files with 10 additions and 4 deletions

View File

@ -55,6 +55,7 @@ phpMyAdmin - ChangeLog
- bug #4924 Recaptcha failure
- bug #4930 Database copy doesn't work for tables with more than one FULLTEXT index
- bug #4929 Edit view structure doesn't load the algorithm
- bug #4923 Do not limit table comments to 60 characters
4.4.7.0 (2015-05-16)
- bug #4876 Settings issues (Favorite tables shown twice in Settings)

View File

@ -874,19 +874,22 @@ function PMA_getHtmlForRenameTable()
/**
* Get HTML for the table comments part of table options
*
* @param string $current_value of the table comments
* @param string $current_value of the table comments
*
* @return string $html_output
*/
function PMA_getHtmlForTableComments($current_value)
{
$commentLength = PMA_MYSQL_INT_VERSION >= 50503 ? 2048 : 60;
$html_output = '<tr><td>' . __('Table comments') . '</td>'
. '<td><input type="text" name="comment" maxlength="60" size="30"'
. '<td><input type="text" name="comment" '
. 'maxlength="' . $commentLength . '" size="30"'
. 'value="' . htmlspecialchars($current_value) . '" />'
. '<input type="hidden" name="prev_comment" value="'
. htmlspecialchars($current_value) . '" />'
. '</td>'
. '</tr>';
return $html_output;
}
@ -954,7 +957,7 @@ function PMA_getTableOptionFieldset($comment, $tbl_collation,
. '<legend>' . __('Table options') . '</legend>';
$html_output .= '<table>';
$html_output .= PMA_getHtmlForRenameTable();
$html_output .= PMA_getHtmlForRenameTable();
$html_output .= PMA_getHtmlForTableComments($comment);
//Storage engine

View File

@ -83,8 +83,10 @@ function PMA_getHtmlForTableConfigurations()
. '</th>'
. '</tr>';
$commentLength = PMA_MYSQL_INT_VERSION >= 50503 ? 2048 : 60;
$html .= '<tr>'
. '<td><input type="text" name="comment" size="40" maxlength="60"'
. '<td><input type="text" name="comment"'
. ' size="40" maxlength="' . $commentLength . '"'
. ' value="'
. (isset($_REQUEST['comment'])
? htmlspecialchars($_REQUEST['comment'])