Project

General

Profile

Bug #21198 » 12138.diff

Administrator Admin, 2009-10-07 13:10

View differences:

t3lib/class.t3lib_tcemain.php (Arbeitskopie)
'sys_log',
'type=1 AND userid='.intval($this->BE_USER->user['uid']).' AND tstamp='.intval($GLOBALS['EXEC_TIME']).' AND error!=0'
);
$errorJS = array();
$errors = FALSE;
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res_log)) {
$log_data = unserialize($row['log_data']);
$errorJS[] = $row['error'].': '.sprintf($row['details'], $log_data[0],$log_data[1],$log_data[2],$log_data[3],$log_data[4]);
$msg = $row['error'] . ': ' . sprintf($row['details'], $log_data[0], $log_data[1], $log_data[2], $log_data[3], $log_data[4]);
$flashMessage = t3lib_div::makeInstance(
't3lib_FlashMessage',
$msg,
'',
t3lib_FlashMessage::ERROR
);
t3lib_MessageQueue::addMessage($flashMessage);
$errors = TRUE;
}
$GLOBALS['TYPO3_DB']->sql_free_result($res_log);
if (count($errorJS)) {
if ($errors) {
$error_doc = t3lib_div::makeInstance('template');
$error_doc->backPath = $GLOBALS['BACK_PATH'];
......
<td colspan="2" align="center"><strong>Errors:</strong></td>
</tr>';
foreach($errorJS as $line) {
$lines[] = '
<tr class="bgColor4">
<td valign="top"><img'.t3lib_iconWorks::skinImg($error_doc->backPath,'gfx/icon_fatalerror.gif','width="18" height="16"').' alt="" /></td>
<td>'.htmlspecialchars($line).'</td>
$lines[] = '
<tr class="bgColor5">
<td colspan="2">' . t3lib_messageQueue::renderFlashMessages() . '</td>
</tr>';
}
$lines[] = '
<tr>
(1-1/3)