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>2016-05-11 16:34:25 +0300
committerMichal Čihař <michal@cihar.com>2016-05-11 16:34:25 +0300
commitca5eb903b04035f78819ae1e14ff888155bd3e32 (patch)
tree26901f45b3c6f01cb0cb5fb794247788075b815f /phpmyadmin.css.php
parentcc9550579c02d652686bdc574bc91fb982f7d95b (diff)
Make ThemeManager a singleton instead of storing it in the session
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'phpmyadmin.css.php')
-rw-r--r--phpmyadmin.css.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpmyadmin.css.php b/phpmyadmin.css.php
index 0bfec39c5b..cfbd656c7c 100644
--- a/phpmyadmin.css.php
+++ b/phpmyadmin.css.php
@@ -5,7 +5,8 @@
*
* @package PhpMyAdmin
*/
- use PMA\libraries\OutputBuffering;
+use PMA\libraries\OutputBuffering;
+use PMA\libraries\ThemeManager;
/**
*
@@ -30,4 +31,4 @@ header('Content-Type: text/css; charset=UTF-8');
// file is reloaded when config changes
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT');
-$_SESSION['PMA_Theme_Manager']->printCss();
+ThemeManager::getInstance()->printCss();