1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-24 07:02:51 +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:
Jakub Vrana
2025-03-16 06:18:19 +01:00
parent e40e3434ef
commit a9f768fe0d
3 changed files with 11 additions and 11 deletions

View File

@@ -18,15 +18,15 @@ class AdminerDisableTables {
];
$select = filter_input(INPUT_GET, 'table', FILTER_SANITIZE_STRING);
if(isset($select) && $disabledTables[$select]) die(h('Access Denied.'));
if(isset($select) && $disabledTables[$select]) die(Adminer\h('Access Denied.'));
if($disabledTables[$tableStatus['Name']]){
return false;
}
return h($tableStatus['Name']);
return Adminer\h($tableStatus['Name']);
// tables without comments would return empty string and will be ignored by Adminer
//return h($tableStatus['Comment']);
//return Adminer\h($tableStatus['Comment']);
}
}