Use JUSH only with supported drivers
This commit is contained in:
parent
5136b62e84
commit
c106cf2a34
|
@ -69,6 +69,7 @@ class Adminer {
|
|||
*/
|
||||
function head() {
|
||||
global $jush;
|
||||
if (support("sql")) {
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="../externals/jush/jush.css">
|
||||
<script type="text/javascript" src="../externals/jush/modules/jush.js"></script>
|
||||
|
@ -76,6 +77,7 @@ class Adminer {
|
|||
<script type="text/javascript" src="../externals/jush/modules/jush-txt.js"></script>
|
||||
<script type="text/javascript" src="../externals/jush/modules/jush-<?php echo $jush; ?>.js"></script>
|
||||
<?php
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -806,6 +808,7 @@ username.form['auth[driver]'].onchange();
|
|||
echo "<p class='message'>" . lang('No tables.') . "\n";
|
||||
} else {
|
||||
$this->tablesPrint($tables);
|
||||
if (support("sql")) {
|
||||
$links = array();
|
||||
foreach ($tables as $table => $type) {
|
||||
$links[] = preg_quote($table, '/');
|
||||
|
@ -821,6 +824,7 @@ username.form['auth[driver]'].onchange();
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Prints databases list in menu
|
||||
* @param string
|
||||
|
|
Loading…
Reference in a new issue