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:
@@ -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']);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user