1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 19:44:00 +02:00

MariaDB: Links to documentation in syntax highlighting

This commit is contained in:
Jakub Vrana
2018-02-08 23:47:16 +01:00
parent cf7fe88990
commit e299e9d82d
3 changed files with 11 additions and 3 deletions

View File

@@ -960,8 +960,9 @@ class Adminer {
echo "jushLinks.$val = jushLinks.$jush;\n";
}
}
$server_info = $connection->server_info;
?>
bodyLoad('<?php echo (is_object($connection) ? preg_replace('~^(\\d\\.?\\d).*~s', '\\1', $connection->server_info) : ""); ?>');
bodyLoad('<?php echo (is_object($connection) ? preg_replace('~^(\\d\\.?\\d).*~s', '\\1', $server_info) : ""); ?>'<?php echo (preg_match('~MariaDB~', $server_info) ? ", true" : ""); ?>);
</script>
<?php
}