Use namespaces in plugins

This commit is contained in:
Jakub Vrana
2025-03-05 11:40:56 +01:00
parent 52c5392089
commit 50e7a65e6e
32 changed files with 105 additions and 105 deletions

View File

@@ -34,8 +34,8 @@ class AdminerSlugify {
}
$slug = $slugify[$field["field"]];
if ($slug !== null) {
return "<input value='" . h($value) . "' data-maxlength='$field[length]' size='40'$attrs>"
. script("qsl('input').onchange = function () {
return "<input value='" . Adminer\h($value) . "' data-maxlength='$field[length]' size='40'$attrs>"
. Adminer\script("qsl('input').onchange = function () {
var find = '$this->from';
var repl = '$this->to';
this.form['fields[$slug]'].value = this.value.toLowerCase()