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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user