Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2017-11-28 17:15:34 +0300
committerMichal Čihař <michal@cihar.com>2017-11-28 17:16:01 +0300
commitf9c73c7b10e5c57bfb8deb965491f84c9d6623c7 (patch)
tree27dca967aa4bd4655babdbc785801591b7dae623 /index.php
parentcbbf0d5ccf8a4d1b03851407b93453786cd1d952 (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.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/index.php b/index.php
index 98039f1b0f..66627f3e75 100644
--- a/index.php
+++ b/index.php
@@ -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;