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:
Diffstat (limited to 'libraries/Header.class.php')
-rw-r--r--libraries/Header.class.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/libraries/Header.class.php b/libraries/Header.class.php
index 0a3ac7dc75..5d3b29d576 100644
--- a/libraries/Header.class.php
+++ b/libraries/Header.class.php
@@ -230,7 +230,9 @@ class PMA_Header
$params = array(
'common_query' => PMA_URL_getCommon(array(), 'text'),
- 'opendb_url' => $GLOBALS['cfg']['DefaultTabDatabase'],
+ 'opendb_url' => PMA_Util::getScriptNameForOption(
+ $GLOBALS['cfg']['DefaultTabDatabase'], 'database'
+ ),
'safari_browser' => PMA_USR_BROWSER_AGENT == 'SAFARI' ? 1 : 0,
'collation_connection' => $GLOBALS['collation_connection'],
'lang' => $GLOBALS['lang'],