Project

General

Profile

Bug #21524 » 12548_v2.diff

Administrator Admin, 2009-11-10 19:49

View differences:

typo3/sysext/opendocs/class.tx_opendocs.php (working copy)
$label = htmlspecialchars(strip_tags(t3lib_div::htmlspecialchars_decode($document[0])));
$icon = t3lib_iconWorks::getIconImage($table, $record, $GLOBALS['BACK_PATH']);
$link = $GLOBALS['BACK_PATH'] . 'alt_doc.php?' . $document[2];
$link = preg_replace('/&(?!amp;)/', '&', $link);
$firstRow = '';
if ($isFirstDoc) {
......
$closeIcon = '<img' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/closedok.gif', 'width="16" height="16"') . ' title="' . $title . '" alt="' . $title . '" />';
$entry = '
<tr id="opendocs-' . $table . '-' . $uid . '" class="opendoc' . $firstRow . '">
<tr id="opendocs-open-' . $table . '-' . $uid . '" class="opendoc' . $firstRow . '">
<td class="icon">' . $icon . '</td>
<td class="label"><a href="' . $link . '" target="content" onclick="TYPO3BackendOpenDocs.toggleMenu();">' . $label . '</a></td>
<td class="close" onclick="return TYPO3BackendOpenDocs.closeDocument(\'' . $md5sum . '\');">' . $closeIcon . '</td>
......
} else {
// recently used document
$entry = '
<tr id="opendocs-' . $table . '-' . $uid . '" class="recentdoc' . $firstRow . '">
<tr id="opendocs-recent-' . $table . '-' . $uid . '" class="recentdoc' . $firstRow . '">
<td class="icon">' . $icon . '</td>
<td class="label" colspan="2"><a href="' . $link . '" target="content" onclick="TYPO3BackendOpenDocs.toggleMenu();">' . $label . '</a></td>
</tr>';
(2-2/2)