mirror of
https://github.com/vrana/adminer.git
synced 2025-08-14 18:44:02 +02:00
Use namespace
This commit is contained in:
@@ -25,7 +25,7 @@ function adminer_object() {
|
|||||||
|
|
||||||
function tableName($tableStatus) {
|
function tableName($tableStatus) {
|
||||||
// tables without comments would return empty string and will be ignored by Adminer
|
// tables without comments would return empty string and will be ignored by Adminer
|
||||||
return h($tableStatus["Comment"]);
|
return Adminer\h($tableStatus["Comment"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function fieldName($field, $order = 0) {
|
function fieldName($field, $order = 0) {
|
||||||
@@ -34,11 +34,11 @@ function adminer_object() {
|
|||||||
}
|
}
|
||||||
// display only column with comments, first five of them plus searched columns
|
// display only column with comments, first five of them plus searched columns
|
||||||
if ($order < 5) {
|
if ($order < 5) {
|
||||||
return h($field["comment"]);
|
return Adminer\h($field["comment"]);
|
||||||
}
|
}
|
||||||
foreach ((array) $_GET["where"] as $key => $where) {
|
foreach ((array) $_GET["where"] as $key => $where) {
|
||||||
if ($where["col"] == $field["field"] && ($key >= 0 || $where["val"] != "")) {
|
if ($where["col"] == $field["field"] && ($key >= 0 || $where["val"] != "")) {
|
||||||
return h($field["comment"]);
|
return Adminer\h($field["comment"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
Reference in New Issue
Block a user