Bug #24144 » TYPO3-bug16488.diff
typo3_src-4.5.0beta1.patched/typo3/sysext/em/classes/extensions/class.tx_em_extensions_list.php 2010-11-20 14:44:05.520066419 +1100 | ||
---|---|---|
'</a></td>';
|
||
// Manual download
|
||
$fileP = PATH_site . tx_em_Tools::typePath($extInfo['type']) . $extKey . '/doc/manual.sxw';
|
||
$fileP = tx_em_Tools::typePath($extInfo['type']) . $extKey . '/doc/manual.sxw';
|
||
$cells[] = '<td nowrap="nowrap">' .
|
||
(tx_em_Tools::typePath($extInfo['type']) && @is_file($fileP) ?
|
||
'<a href="' . htmlspecialchars(t3lib_div::resolveBackPath($this->parentObject->doc->backPath . '../' .
|
||
tx_em_Tools::typePath($extInfo['type']) . $extKey . '/doc/manual.sxw')) . '" target="_blank" title="' . $GLOBALS['LANG']->getLL('listRow_local_manual') . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-system-extension-documentation') . '</a>' : '') .
|
||
'<a href="' . htmlspecialchars(
|
||
tx_em_Tools::typeUrl($extInfo['type']) . $extKey . '/doc/manual.sxw') . '" target="_blank" title="' . $GLOBALS['LANG']->getLL('listRow_local_manual') . '">' .
|
||
t3lib_iconWorks::getSpriteIcon('actions-system-extension-documentation') . '</a>' : '') .
|
||
'</td>';
|
||
// Double installation (inclusion of an extension in more than one of system, global or local scopes)
|
typo3_src-4.5.0beta1.patched/typo3/sysext/em/classes/tools/class.tx_em_tools.php 2010-11-20 14:39:59.692067391 +1100 | ||
---|---|---|
}
|
||
/**
|
||
* Get URL from type
|
||
*
|
||
* @param string $type S/G/L
|
||
*/
|
||
public function typeUrl($type) {
|
||
if ($type === 'S') {
|
||
return t3lib_div::getIndpEnv('TYPO3_SITE_URL') . 'typo3/sysext/';
|
||
} elseif ($type === 'G') {
|
||
return t3lib_div::getIndpEnv('TYPO3_SITE_URL') . 'typo3/ext/';
|
||
} elseif ($type === 'L') {
|
||
return t3lib_div::getIndpEnv('TYPO3_SITE_URL') . 'typo3conf/ext/';
|
||
}
|
||
}
|
||
/**
|
||
* Reads locallang file into array (for possible include in header)
|
||
*
|
||
* @param $file
|