Skip to content

Commit

Permalink
Unify dumpTable declarations (bug #707)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Nov 11, 2019
1 parent a4e997f commit 08c132c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion editor/include/adminer.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ function dumpFormat() {
function dumpDatabase($db) {
}

function dumpTable() {
function dumpTable($table, $style, $is_view = 0) {
echo "\xef\xbb\xbf"; // UTF-8 byte order mark
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/dump-alter.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function dumpDatabase($db) {
}
}

function dumpTable($table, $style, $is_view = false) {
function dumpTable($table, $style, $is_view = 0) {
if ($_POST["format"] == "sql_alter") {
$create = create_sql($table, $_POST["auto_increment"], $style);
if ($is_view) {
Expand Down
2 changes: 1 addition & 1 deletion plugins/dump-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function dumpFormat() {
return array('json' => 'JSON');
}

function dumpTable($table, $style, $is_view = false) {
function dumpTable($table, $style, $is_view = 0) {
if ($_POST["format"] == "json") {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/dump-php.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function dumpHeaders() {
}
}

function dumpTable($table) {
function dumpTable($table, $style, $is_view = 0) {
if ($_POST['format'] == 'php') {
$this->output[$table] = array();
if (!$this->shutdown_callback) {
Expand Down
2 changes: 1 addition & 1 deletion plugins/dump-xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function dumpFormat() {
return array('xml' => 'XML');
}

function dumpTable($table, $style, $is_view = false) {
function dumpTable($table, $style, $is_view = 0) {
if ($_POST["format"] == "xml") {
return true;
}
Expand Down

0 comments on commit 08c132c

Please sign in to comment.