Project

General

Profile

Bug #23455 » 15563-beuser-export-error.patch

Administrator Admin, 2011-02-08 10:22

View differences:

typo3/sysext/impexp/app/index.php (working copy)
$rParts = explode(':', $ref);
$tName = $rParts[0];
if ($GLOBALS['BE_USER']->check('tables_select',$tName)) {
$rec = t3lib_BEfunc::getRecordWSOL('pages', $rParts[1]);
$tblList .= 'Table "' . $tName . '" from ' . t3lib_iconworks::getSpriteIconForRecord('pages', $rec) .
t3lib_BEfunc::getRecordTitle('pages', $rec, TRUE).
'<input type="hidden" name="tx_impexp[list][]" value="'.htmlspecialchars($ref).'" /><br/>';
if ($GLOBALS['BE_USER']->check('tables_select', $tName)) {
$pageIcon = $pageTitle = '';
// root page
if ($rParts[1] == 0) {
$pageIcon = t3lib_iconWorks::getSpriteIcon('apps-pagetree-root');
$pageTitle = htmlspecialchars($GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']);
} else {
$rec = t3lib_BEfunc::getRecordWSOL('pages', $rParts[1]);
$pageIcon = t3lib_iconworks::getSpriteIconForRecord('pages', $rec);
$pageTitle = t3lib_BEfunc::getRecordTitle('pages', $rec, TRUE);
}
$tblList .= 'Table "' . $tName . '" from ' . $pageIcon . $pageTitle .
'<input type="hidden" name="tx_impexp[list][]" value="' . htmlspecialchars($ref) . '" /><br/>';
}
}
$row[] = '
(2-2/2)