mirror of
https://github.com/vrana/adminer.git
synced 2025-08-14 18:44:02 +02:00
Move edit functions to Driver
This commit is contained in:
@@ -684,10 +684,10 @@ class Adminer {
|
||||
* @return array
|
||||
*/
|
||||
function editFunctions($field) {
|
||||
global $edit_functions;
|
||||
global $driver;
|
||||
$return = ($field["null"] ? "NULL/" : "");
|
||||
$update = isset($_GET["select"]) || where($_GET);
|
||||
foreach ($edit_functions as $key => $functions) {
|
||||
foreach ($driver->editFunctions as $key => $functions) {
|
||||
if (!$key || (!isset($_GET["call"]) && $update)) { // relative functions
|
||||
foreach ($functions as $pattern => $val) {
|
||||
if (!$pattern || preg_match("~$pattern~", $field["type"])) {
|
||||
|
Reference in New Issue
Block a user