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

Elasticsearch: Make it work with Elasticsearch 8

This commit is contained in:
Jakub Vrana
2025-03-28 16:17:41 +01:00
parent bd823716fc
commit 2396397b75
5 changed files with 141 additions and 20 deletions

View File

@@ -5,7 +5,7 @@
chdir(__DIR__);
foreach (glob("*.html") as $filename) {
if (!preg_match('~^pdo-~', $filename)) {
if (!preg_match('~^pdo-|elastic~', $filename)) {
$file = file_get_contents($filename);
$file = preg_replace_callback('~/(adminer(/sqlite)?|editor/example)\.php(\??)~', function ($match) {
return "/$match[1].php?ext=pdo" . ($match[3] ? "&" : "");