1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 10:04:07 +02:00

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

@@ -19,7 +19,7 @@ class AdminerJsonColumn {
echo '<table style="margin:2px; font-size:100%;">';
foreach ($json as $key => $val) {
echo '<tr>';
echo '<th>' . h($key) . '</th>';
echo '<th>' . Adminer\h($key) . '</th>';
echo '<td>';
if (is_scalar($val) || $val === null) {
if (is_bool($val)) {
@@ -27,7 +27,7 @@ class AdminerJsonColumn {
} elseif ($val === null) {
$val = 'null';
} elseif (!is_numeric($val)) {
$val = '"' . h(addcslashes($val, "\r\n\"")) . '"';
$val = '"' . Adminer\h(addcslashes($val, "\r\n\"")) . '"';
}
echo '<code class="jush-js">' . $val . '</code>';
} else {