diff options
author | Michal Čihař <michal@cihar.com> | 2016-05-11 16:34:25 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-05-11 16:34:25 +0300 |
commit | ca5eb903b04035f78819ae1e14ff888155bd3e32 (patch) | |
tree | 26901f45b3c6f01cb0cb5fb794247788075b815f /themes.php | |
parent | cc9550579c02d652686bdc574bc91fb982f7d95b (diff) |
Make ThemeManager a singleton instead of storing it in the session
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'themes.php')
-rw-r--r-- | themes.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/themes.php b/themes.php index 5c6f2089f2..6079b5610e 100644 --- a/themes.php +++ b/themes.php @@ -5,11 +5,13 @@ * * @package PhpMyAdmin */ +use PMA\libraries\ThemeManager; /** * get some globals */ require './libraries/common.inc.php'; + $response = PMA\libraries\Response::getInstance(); $response->getFooter()->setMinimal(); $header = $response->getHeader(); @@ -25,6 +27,6 @@ $output .= '<a href="' . $url . '" class="_blank">'; $output .= __('Get more themes!'); $output .= '</a>'; $output .= '</p>'; -$output .= $_SESSION['PMA_Theme_Manager']->getPrintPreviews(); +$output .= ThemeManager::getInstance()->getPrintPreviews(); $response->addHTML($output); |