Add Adminer namespace

Adminer 5 wrapped itself into a namespace and plugins now need to call Adminer's functions via this namespace.
This commit is contained in:
Jakub Vrana
2025-03-16 06:18:19 +01:00
parent e40e3434ef
commit a9f768fe0d
3 changed files with 11 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ class AdminerFkDisable
?>
<script<?php echo nonce();?> type="text/javascript">
<script<?php echo Adminer\nonce();?> type="text/javascript">
function domReady(fn) {
document.addEventListener("DOMContentLoaded", fn);
@@ -46,7 +46,7 @@ class AdminerFkDisable
}
domReady(() => {
document.querySelectorAll('#form p')[1].insertAdjacentHTML('beforeend', '<label><input type="checkbox" name="fk_disable" value="1" <?= $fk_disable_checked ?> /><?= lang('Disable Foreign Keys') ?></label>')
document.querySelectorAll('#form p')[1].insertAdjacentHTML('beforeend', '<label><input type="checkbox" name="fk_disable" value="1" <?= $fk_disable_checked ?> /><?= Adminer\lang('Disable Foreign Keys') ?></label>')
})
</script>