mirror of
https://github.com/vrana/adminer.git
synced 2026-02-26 00:21:24 +01:00
Use connection() instead of $connection
This commit is contained in:
@@ -15,7 +15,6 @@ class AdminerCodemirror {
|
||||
}
|
||||
|
||||
function syntaxHighlighting($tableStatuses) {
|
||||
$connection = Adminer\connection();
|
||||
?>
|
||||
<style>
|
||||
@import url(<?php echo $this->root; ?>/lib/codemirror.css);
|
||||
@@ -44,7 +43,7 @@ function getCmMode(el) {
|
||||
if (match) {
|
||||
const modes = {
|
||||
js: 'application/json',
|
||||
sql: 'text/x-<?php echo ($connection->flavor == "maria" ? "mariadb" : "mysql"); ?>',
|
||||
sql: 'text/x-<?php echo (Adminer\connection()->flavor == "maria" ? "mariadb" : "mysql"); ?>',
|
||||
oracle: 'text/x-sql',
|
||||
clickhouse: 'text/x-sql',
|
||||
firebird: 'text/x-sql'
|
||||
|
||||
Reference in New Issue
Block a user