From 3b6a994dcdf2cbcfa23caa51b3719ba924aab20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 29 Nov 2017 11:00:17 +0100 Subject: Move collation connection setting to user preferences MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is now handled same way as other user settings. Issue #11688 Issue #13466 Signed-off-by: Michal Čihař --- index.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index 93a3785322..df4f420250 100644 --- a/index.php +++ b/index.php @@ -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 '
  • '; - echo '
    ' , "\n" + echo ' ' , "\n" . Url::getHiddenInputs(null, null, 4, 'collation_connection') . '