From 555e2e76b7cf979db2f981ae8a85d415899cc6e9 Mon Sep 17 00:00:00 2001 From: Peter Knut Date: Tue, 22 Oct 2024 12:37:50 +0200 Subject: [PATCH] Keep backward compatibility with non-official plugins --- adminer/include/adminer.inc.php | 8 ++++---- editor/include/adminer.inc.php | 8 ++++---- plugins/plugin.php | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 9149c0bd..dc1084c7 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -399,7 +399,7 @@ class Adminer { * @param array $select result of selectColumnsProcess()[0] * @param array $columns selectable columns */ - function selectColumnsPrint(array $select, array $columns) { + function selectColumnsPrint($select, $columns) { global $functions, $grouping; print_fieldset("select", lang('Select'), $select, true); @@ -447,7 +447,7 @@ class Adminer { * @param array $where result of selectSearchProcess() * @param array $columns selectable columns */ - function selectSearchPrint(array $where, array $columns, array $indexes) { + function selectSearchPrint($where, $columns, $indexes) { print_fieldset("search", lang('Search'), $where); foreach ($indexes as $i => $index) { @@ -489,7 +489,7 @@ class Adminer { * @param array $order result of selectOrderProcess() * @param array $columns selectable columns */ - function selectOrderPrint(array $order, array $columns, array $indexes) { + function selectOrderPrint($order, $columns, $indexes) { print_fieldset("sort", lang('Sort'), $order, true); $_GET["order"][""] = ""; @@ -1199,7 +1199,7 @@ bodyLoad('" . script("mixin(qs('#tables'), {onmouseover: menuOver, onmouseout: menuOut});"); foreach ($tables as $table => $status) { diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index ff4622b4..13dc45cc 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -224,11 +224,11 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5 return $val; } - function selectColumnsPrint(array $select, array $columns) { + function selectColumnsPrint($select, $columns) { // can allow grouping functions by indexes } - function selectSearchPrint(array $where, array $columns, array $indexes) { + function selectSearchPrint($where, $columns, $indexes) { $where = (array) $_GET["where"]; echo '\n"; } - function selectOrderPrint(array $order, array $columns, array $indexes) { + function selectOrderPrint($order, $columns, $indexes) { //! desc $orders = array(); foreach ($indexes as $key => $index) { @@ -654,7 +654,7 @@ qsl('div').onclick = whisperClick;", "") . "\n"; } - function tablesPrint(array $tables) { + function tablesPrint($tables) { echo "