diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php
index 9c27b7d1..cd420466 100644
--- a/adminer/include/adminer.inc.php
+++ b/adminer/include/adminer.inc.php
@@ -761,7 +761,7 @@ username.form['auth[driver]'].onchange();
* @return null
*/
function navigation($missing) {
- global $VERSION, $jush, $drivers;
+ global $VERSION, $jush, $drivers, $connection;
?>
name(); ?>
@@ -787,12 +787,31 @@ username.form['auth[driver]'].onchange();
}
}
} else {
+ if ($_GET["ns"] !== "" && !$missing && DB != "") {
+ $connection->select_db(DB);
+ $tables = table_status('', true);
+ }
if (support("sql")) {
?>
+
databasesPrint($missing);
@@ -804,23 +823,10 @@ username.form['auth[driver]'].onchange();
}
if ($_GET["ns"] !== "" && !$missing && DB != "") {
echo '" . lang('Create table') . "\n";
- $tables = table_status('', true);
if (!$tables) {
echo "
" . lang('No tables.') . "\n";
} else {
$this->tablesPrint($tables);
- if (support("sql")) {
- $links = array();
- foreach ($tables as $table => $type) {
- $links[] = preg_quote($table, '/');
- }
- echo "\n";
- }
}
}
}
diff --git a/adminer/include/design.inc.php b/adminer/include/design.inc.php
index 6a3930f0..ee021b7f 100644
--- a/adminer/include/design.inc.php
+++ b/adminer/include/design.inc.php
@@ -7,7 +7,7 @@
* @return null
*/
function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
- global $LANG, $VERSION, $adminer, $connection, $drivers, $jush;
+ global $LANG, $VERSION, $adminer, $drivers, $jush;
page_headers();
$title_all = $title . ($title2 != "" ? ": $title2" : "");
$title_page = strip_tags($title_all . (SERVER != "" && SERVER != "localhost" ? h(" - " . SERVER) : "") . " - " . $adminer->name());
@@ -29,7 +29,7 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
-
');">
+>
diff --git a/adminer/static/editing.js b/adminer/static/editing.js
index a1a8662b..6bc8bda7 100644
--- a/adminer/static/editing.js
+++ b/adminer/static/editing.js
@@ -6,16 +6,18 @@
function bodyLoad(version) {
if (window.jush) {
jush.create_links = ' target="_blank" rel="noreferrer"';
- for (var key in jush.urls) {
- var obj = jush.urls;
- if (typeof obj[key] != 'string') {
- obj = obj[key];
- key = 0;
+ if (version) {
+ for (var key in jush.urls) {
+ var obj = jush.urls;
+ if (typeof obj[key] != 'string') {
+ obj = obj[key];
+ key = 0;
+ }
+ obj[key] = obj[key]
+ .replace(/\/doc\/mysql/, '/doc/refman/' + version) // MySQL
+ .replace(/\/docs\/current/, '/docs/' + version) // PostgreSQL
+ ;
}
- obj[key] = obj[key]
- .replace(/\/doc\/mysql/, '/doc/refman/' + version) // MySQL
- .replace(/\/docs\/current/, '/docs/' + version) // PostgreSQL
- ;
}
if (window.jushLinks) {
jush.custom_links = jushLinks;
diff --git a/editor/static/editing.js b/editor/static/editing.js
index 15681883..9b441c49 100644
--- a/editor/static/editing.js
+++ b/editor/static/editing.js
@@ -1,8 +1,5 @@
// Editor specific functions
-function bodyLoad(version) {
-}
-
function selectFieldChange(form) {
}