Bug #20154 » 10651_v4.patch
typo3/mod/tools/em/class.em_index.php (working copy) | ||
---|---|---|
* @return string HTML <tr> content
|
||
*/
|
||
function extensionListRow($extKey,$extInfo,$cells,$bgColorClass='',$inst_list=array(),$import=0,$altLinkUrl='') {
|
||
|
||
global $LANG;
|
||
// Icon:
|
||
$imgInfo = @getImageSize($this->getExtPath($extKey,$extInfo['type']).'/ext_icon.gif');
|
||
... | ... | |
$cells[] = '<td nowrap="nowrap">'.
|
||
($this->typePaths[$extInfo['type']] && @is_file($fileP)?'<a href="'.htmlspecialchars(t3lib_div::resolveBackPath($this->doc->backPath.'../'.$this->typePaths[$extInfo['type']].$extKey.'/doc/manual.sxw')).'" target="_blank"><img src="oodoc.gif" width="13" height="16" title="Local Open Office Manual" alt="" /></a>':'').
|
||
'</td>';
|
||
$cells[] = '<td nowrap="nowrap">'.$this->typeLabels[$extInfo['type']].(strlen($extInfo['doubleInstall'])>1?'<strong> '.$GLOBALS['TBE_TEMPLATE']->rfw($extInfo['doubleInstall']).'</strong>':'').'</td>';
|
||
|
||
// double installation (incluision of an extension in more than one of system, global or local scopes)
|
||
$doubleInstall = '';
|
||
if (strlen($extInfo['doubleInstall']) > 1) {
|
||
// separate the "SL" string into an array and replace L by Local, G by Global etc.
|
||
$doubleInstallations = str_replace(
|
||
array('S', 'G', 'L'),
|
||
array($LANG->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:sysext'),
|
||
$LANG->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:globalext'),
|
||
$LANG->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:localext')
|
||
),
|
||
str_split($extInfo['doubleInstall'])
|
||
);
|
||
$doubleInstallTitle = sprintf(
|
||
$LANG->sL('LLL:EXT:lang/locallang_mod_tools_em.xml:double_inclusion'),
|
||
array_pop($doubleInstallations), // used extension
|
||
array_pop($doubleInstallations) // overridden extension
|
||
);
|
||
$doubleInstall = ' <strong><abbr title="' . $doubleInstallTitle .'">' . $GLOBALS['TBE_TEMPLATE']->rfw($extInfo['doubleInstall']) . '</abbr></strong>';
|
||
}
|
||
$cells[] = '<td nowrap="nowrap">' . $this->typeLabels[$extInfo['type']] . $doubleInstall . '</td>';
|
||
} else { // Listing extensions from REMOTE repository:
|
||
$inst_curVer = $inst_list[$extKey]['EM_CONF']['version'];
|
||
if (isset($inst_list[$extKey])) {
|
typo3/sysext/lang/locallang_mod_tools_em.xml (working copy) | ||
---|---|---|
<label index="msg_modified">Modified Files:</label>
|
||
<label index="note_last_update">Last update of list of extensions:</label>
|
||
<label index="note_last_update2">Use "Retrieve/Update" in "Import Extensions" section to get/update the list.</label>
|
||
<label index="double_inclusion">%1$s takes precedence over %2$s</label>
|
||
<label index="globalext">Globally installed extension</label>
|
||
<label index="localext">Locally installed extension</label>
|
||
<label index="sysext">System extension</label>
|
||
</languageKey>
|
||
</data>
|
||
</T3locallang>
|