diff options
author | Michal Čihař <michal@cihar.com> | 2017-11-28 17:15:34 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-11-28 17:16:01 +0300 |
commit | f9c73c7b10e5c57bfb8deb965491f84c9d6623c7 (patch) | |
tree | 27dca967aa4bd4655babdbc785801591b7dae623 /index.php | |
parent | cbbf0d5ccf8a4d1b03851407b93453786cd1d952 (diff) |
Remove special casing for font size
It is now stored in configuration in same way as any other setting.
Issue #13466
Issue #11688
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -66,6 +66,17 @@ if (isset($_REQUEST['ajax_request']) && ! empty($_REQUEST['access_time'])) { exit; } +if (isset($_POST['set_fontsize']) && preg_match('/^[0-9.]+(px|em|pt|\%)$/', $_POST['set_fontsize'])) { + $GLOBALS['PMA_Config']->setUserValue( + null, + 'FontSize', + $_POST['set_fontsize'], + '82%' + ); + header('Location: index.php' . Url::getCommonRaw()); + exit(); +} + // See FAQ 1.34 if (! empty($_REQUEST['db'])) { $page = null; |