diff options
author | Michal Čihař <michal@cihar.com> | 2017-11-29 13:00:17 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-11-29 16:16:31 +0300 |
commit | 3b6a994dcdf2cbcfa23caa51b3719ba924aab20a (patch) | |
tree | 8db6b6e7958f33c64e14b395fae03506cbe3c8cf /index.php | |
parent | 63f5b90ad53613dc4529f0711b2cf1c3a7e55d3c (diff) |
Move collation connection setting to user preferences
It is now handled same way as other user settings.
Issue #11688
Issue #13466
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -85,6 +85,17 @@ if (isset($_POST['set_theme'])) { header('Location: index.php' . Url::getCommonRaw()); exit(); } +// Change collation connection +if (isset($_POST['collation_connection'])) { + $GLOBALS['PMA_Config']->setUserValue( + null, + 'DefaultConnectionCollation', + $_POST['collation_connection'], + 'utf8mb4_unicode_ci' + ); + header('Location: index.php' . Url::getCommonRaw()); + exit(); +} // See FAQ 1.34 @@ -235,7 +246,7 @@ if ($server > 0 || count($cfg['Servers']) > 1 } } // end if echo ' <li id="li_select_mysql_collation" class="no_bullets" >'; - echo ' <form method="post" action="index.php">' , "\n" + echo ' <form class="disableAjax" method="post" action="index.php">' , "\n" . Url::getHiddenInputs(null, null, 4, 'collation_connection') . ' <label for="select_collation_connection">' . "\n" . ' ' . Util::getImage('s_asci') |