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-07-17 15:18:35 +0300
committerMichal Čihař <michal@cihar.com>2017-07-17 15:18:35 +0300
commit51fb18612aec88a62f95006fd1906b55b17b91d2 (patch)
treefdefce970a52cfc218cf6d0958d28c930fad650f /test/bootstrap-dist.php
parent1b098c62cfa443e414da288ca5c528fb368f0fec (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.php2
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';