Fix for #14295
Fixes: #14295
Signed-off-by: William Desportes <williamdes@wdes.fr>
(cherry picked from commit a87bf74eed)
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
parent
0277c1bed8
commit
0a43c47868
@ -19,6 +19,7 @@ use PhpMyAdmin\Server\Select;
|
||||
use PhpMyAdmin\ThemeManager;
|
||||
use PhpMyAdmin\Url;
|
||||
use PhpMyAdmin\Util;
|
||||
use PhpMyAdmin\UserPreferences;
|
||||
|
||||
/**
|
||||
* Gets some core libraries and displays a top message if required
|
||||
@ -82,6 +83,12 @@ if (isset($_POST['set_theme'])) {
|
||||
$tmanager = ThemeManager::getInstance();
|
||||
$tmanager->setActiveTheme($_POST['set_theme']);
|
||||
$tmanager->setThemeCookie();
|
||||
|
||||
$userPreferences = new UserPreferences();
|
||||
$prefs = $userPreferences->load();
|
||||
$prefs["config_data"]["ThemeDefault"] = $_POST['set_theme'];
|
||||
$userPreferences->save($prefs["config_data"]);
|
||||
|
||||
header('Location: index.php' . Url::getCommonRaw());
|
||||
exit();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user