Project

General

Profile

Bug #21324 » 12299.diff

Administrator Admin, 2009-10-21 15:53

View differences:

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>&nbsp;</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>&nbsp;&nbsp;&nbsp;</td><td>' .
sprintf($GLOBALS['LANG']->getLL('extBackup_number_of_records'),
$count) . '</td></tr>';
} else {
$tablesNA[$tN] = '<tr><td>&nbsp;</td><td>' . $tN . '</td><td>&nbsp;</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>&nbsp;</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>&nbsp;&nbsp;&nbsp;</td><td>' .
sprintf($GLOBALS['LANG']->getLL('extBackup_number_of_records'),
$count) . '</td></tr>';
} else {
$tablesNA[$tN] = '<tr><td>&nbsp;</td><td>' . $tN . '</td><td>&nbsp;</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]=' .
(1-1/5)