diff options
author | Michal Čihař <michal@cihar.com> | 2017-07-17 15:18:35 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-07-17 15:18:35 +0300 |
commit | 51fb18612aec88a62f95006fd1906b55b17b91d2 (patch) | |
tree | fdefce970a52cfc218cf6d0958d28c930fad650f /test/bootstrap-dist.php | |
parent | 1b098c62cfa443e414da288ca5c528fb368f0fec (diff) |
Move Theme object out of session
Honestly I don't see good reason for storing Theme in session as loading
it from the session will take about same time as loading it from the
disk.
Additionally it seems that current code really didn't really use the
object stored in session, it was constructed with every request anyway
(by ThemeManager::initializeTheme).
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'test/bootstrap-dist.php')
-rw-r--r-- | test/bootstrap-dist.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/bootstrap-dist.php b/test/bootstrap-dist.php index 9f9f4b93ca..6fdbdce529 100644 --- a/test/bootstrap-dist.php +++ b/test/bootstrap-dist.php @@ -87,7 +87,7 @@ session_start(); // Standard environment for tests $_SESSION[' PMA_token '] = 'token'; -$_SESSION['PMA_Theme'] = PhpMyAdmin\Theme::load('./themes/pmahomme'); +$GLOBALS['PMA_Theme'] = PhpMyAdmin\Theme::load('./themes/pmahomme'); $_SESSION['tmpval']['pftext'] = 'F'; $GLOBALS['lang'] = 'en'; $GLOBALS['cell_align_left'] = 'left'; |