mirror of
https://github.com/vrana/adminer.git
synced 2026-05-07 15:27:28 +02:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user