add backquotes to improve look and feel of output
Signed-off-by: Sven Strickroth <email@cs-ware.de>
This commit is contained in:

committed by
Marc Delisle

parent
9fc23c8824
commit
7ef064f648
@@ -87,7 +87,7 @@ function PMA_exportHeader()
|
|||||||
*/
|
*/
|
||||||
function PMA_exportDBHeader($db)
|
function PMA_exportDBHeader($db)
|
||||||
{
|
{
|
||||||
PMA_exportOutputHandler('//' . $GLOBALS['crlf'] . '// Database "' . $db . '"' . $GLOBALS['crlf'] . '//' . $GLOBALS['crlf']);
|
PMA_exportOutputHandler('//' . $GLOBALS['crlf'] . '// Database ' . PMA_backquote($db) . $GLOBALS['crlf'] . '//' . $GLOBALS['crlf']);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -163,14 +163,13 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
|
|||||||
|
|
||||||
// Output table name as comment if this is the first record of the table
|
// Output table name as comment if this is the first record of the table
|
||||||
if ($record_cnt == 1) {
|
if ($record_cnt == 1) {
|
||||||
$buffer .= $crlf . '// ' . $db . '.' . $table . $crlf;
|
$buffer .= $crlf . '// ' . PMA_backquote($db) . '.' . PMA_backquote($table) . $crlf;
|
||||||
$buffer .= '$' . $tablefixed . ' = array(' . $crlf;
|
$buffer .= '$' . $tablefixed . ' = array(' . $crlf;
|
||||||
$buffer .= ' array(';
|
$buffer .= ' array(';
|
||||||
} else {
|
} else {
|
||||||
$buffer .= ',' . $crlf . ' array(';
|
$buffer .= ',' . $crlf . ' array(';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
for ($i = 0; $i < $columns_cnt; $i++) {
|
for ($i = 0; $i < $columns_cnt; $i++) {
|
||||||
$buffer .= var_export($columns[$i], true) . "=>" . var_export($record[$i], true) . (($i + 1 >= $columns_cnt) ? '' : ',');
|
$buffer .= var_export($columns[$i], true) . "=>" . var_export($record[$i], true) . (($i + 1 >= $columns_cnt) ? '' : ',');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user