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

Fix links to PostgreSQL 10 documentation

This commit is contained in:
Jakub Vrana
2018-02-01 14:02:25 +01:00
parent b9ad864b75
commit 2e6190fdf1
2 changed files with 4 additions and 3 deletions

View File

@@ -948,7 +948,7 @@ class Adminer {
}
}
?>
bodyLoad('<?php echo (is_object($connection) ? substr($connection->server_info, 0, 3) : ""); ?>');
bodyLoad('<?php echo (is_object($connection) ? preg_replace('~^(\\d\\.?\\d).*~s', '\\1', $connection->server_info) : ""); ?>');
</script>
<?php
}