Unify dumpTable declarations (bug #707)
This commit is contained in:
parent
a4e997fe60
commit
08c132cbea
|
@ -537,7 +537,7 @@ qsl('div').onclick = whisperClick;", "")
|
||||||
function dumpDatabase($db) {
|
function dumpDatabase($db) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function dumpTable() {
|
function dumpTable($table, $style, $is_view = 0) {
|
||||||
echo "\xef\xbb\xbf"; // UTF-8 byte order mark
|
echo "\xef\xbb\xbf"; // UTF-8 byte order mark
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ SELECT @adminer_alter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function dumpTable($table, $style, $is_view = false) {
|
function dumpTable($table, $style, $is_view = 0) {
|
||||||
if ($_POST["format"] == "sql_alter") {
|
if ($_POST["format"] == "sql_alter") {
|
||||||
$create = create_sql($table, $_POST["auto_increment"], $style);
|
$create = create_sql($table, $_POST["auto_increment"], $style);
|
||||||
if ($is_view) {
|
if ($is_view) {
|
||||||
|
|
|
@ -14,7 +14,7 @@ class AdminerDumpJson {
|
||||||
return array('json' => 'JSON');
|
return array('json' => 'JSON');
|
||||||
}
|
}
|
||||||
|
|
||||||
function dumpTable($table, $style, $is_view = false) {
|
function dumpTable($table, $style, $is_view = 0) {
|
||||||
if ($_POST["format"] == "json") {
|
if ($_POST["format"] == "json") {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ class AdminerDumpPhp {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function dumpTable($table) {
|
function dumpTable($table, $style, $is_view = 0) {
|
||||||
if ($_POST['format'] == 'php') {
|
if ($_POST['format'] == 'php') {
|
||||||
$this->output[$table] = array();
|
$this->output[$table] = array();
|
||||||
if (!$this->shutdown_callback) {
|
if (!$this->shutdown_callback) {
|
||||||
|
|
|
@ -14,7 +14,7 @@ class AdminerDumpXml {
|
||||||
return array('xml' => 'XML');
|
return array('xml' => 'XML');
|
||||||
}
|
}
|
||||||
|
|
||||||
function dumpTable($table, $style, $is_view = false) {
|
function dumpTable($table, $style, $is_view = 0) {
|
||||||
if ($_POST["format"] == "xml") {
|
if ($_POST["format"] == "xml") {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue