1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-30 17:50:00 +02:00

Keep backward compatibility with non-official plugins

This commit is contained in:
Peter Knut
2024-10-22 12:37:50 +02:00
parent 7883e0bd99
commit 555e2e76b7
3 changed files with 12 additions and 12 deletions

View File

@@ -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('<?php echo (is_object($connection) ? preg_replace('~^(\d\.?\d).*~s', '
* @param array $tables Result of table_status('', true)
* @return null
*/
function tablesPrint(array $tables) {
function tablesPrint($tables) {
echo "<ul id='tables'>" . script("mixin(qs('#tables'), {onmouseover: menuOver, onmouseout: menuOut});");
foreach ($tables as $table => $status) {

View File

@@ -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 '<fieldset id="fieldset-search"><legend>' . lang('Search') . "</legend><div>\n";
$keys = array();
@@ -281,7 +281,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
echo "</div></fieldset>\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;", "")
. "</div>\n";
}
function tablesPrint(array $tables) {
function tablesPrint($tables) {
echo "<ul id='tables'>" . script("mixin(qs('#tables'), {onmouseover: menuOver, onmouseout: menuOut});");
foreach ($tables as $row) {

View File

@@ -250,17 +250,17 @@ class AdminerPlugin extends Adminer {
return $this->_applyPlugin(__FUNCTION__, $args);
}
function selectColumnsPrint(array $select, array $columns) {
function selectColumnsPrint($select,$columns) {
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}
function selectSearchPrint(array $where, array $columns, array $indexes) {
function selectSearchPrint($where, $columns, $indexes) {
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}
function selectOrderPrint(array $order, array $columns, array $indexes) {
function selectOrderPrint($order, $columns, $indexes) {
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}
@@ -395,7 +395,7 @@ class AdminerPlugin extends Adminer {
return $this->_applyPlugin(__FUNCTION__, $args);
}
function tablesPrint(array $tables) {
function tablesPrint($tables) {
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}