Bug #21324 » 12299.diff
typo3/mod/tools/em/class.em_index.php (working copy) | ||
---|---|---|
function extBackup_dumpDataTablesLine($tablesArray,$extKey) {
|
||
$tables = array();
|
||
$tablesNA = array();
|
||
foreach($tablesArray as $tN) {
|
||
$count = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows('*', $tN);
|
||
if (!$GLOBALS['TYPO3_DB']->sql_error()) {
|
||
$tables[$tN] = '<tr><td> </td><td>
|
||
<a href="' . htmlspecialchars('index.php?CMD[dumpTables]=' . rawurlencode($tN) .
|
||
'&CMD[showExt]=' . $extKey) .
|
||
'" title="' .
|
||
sprintf($GLOBALS['LANG']->getLL('extBackup_dump_table'),
|
||
$tN) .
|
||
'">' . $tN . '</a></td><td> </td><td>' .
|
||
sprintf($GLOBALS['LANG']->getLL('extBackup_number_of_records'),
|
||
$count) . '</td></tr>';
|
||
} else {
|
||
$tablesNA[$tN] = '<tr><td> </td><td>' . $tN . '</td><td> </td><td>' .
|
||
$GLOBALS['LANG']->getLL('extBackup_table_not_there') . '</td></tr>';
|
||
}
|
||
if (in_array($extKey, $GLOBALS['TYPO3_LOADED_EXT'])) {
|
||
foreach($tablesArray as $tN) {
|
||
$count = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows('*', $tN);
|
||
if (!$GLOBALS['TYPO3_DB']->sql_error()) {
|
||
$tables[$tN] = '<tr><td> </td><td>
|
||
<a href="' . htmlspecialchars('index.php?CMD[dumpTables]=' . rawurlencode($tN) .
|
||
'&CMD[showExt]=' . $extKey) .
|
||
'" title="' .
|
||
sprintf($GLOBALS['LANG']->getLL('extBackup_dump_table'),
|
||
$tN) .
|
||
'">' . $tN . '</a></td><td> </td><td>' .
|
||
sprintf($GLOBALS['LANG']->getLL('extBackup_number_of_records'),
|
||
$count) . '</td></tr>';
|
||
} else {
|
||
$tablesNA[$tN] = '<tr><td> </td><td>' . $tN . '</td><td> </td><td>' .
|
||
$GLOBALS['LANG']->getLL('extBackup_table_not_there') . '</td></tr>';
|
||
}
|
||
}
|
||
}
|
||
$label = '<table border="0" cellpadding="0" cellspacing="0">'.implode('',array_merge($tables,$tablesNA)).'</table>';// Candidate for t3lib_div::array_merge() if integer-keys will some day make trouble...
|
||
if (count($tables)) {
|
||
$label = '<a href="' . htmlspecialchars('index.php?CMD[dumpTables]=' .
|