Project

General

Profile

Bug #20309 » issue_10898_v1.diff

Administrator Admin, 2010-07-15 11:13

View differences:

typo3/db_new.php (working copy)
}
$nameParts = explode('_', $table);
$thisTitle = '';
if ($nameParts[0] == 'tx' || $nameParts[0] == 'tt') {
// try to extract extension name
if (substr($v['ctrl']['title'], 0, 8) == 'LLL:EXT:') {
$_EXTKEY = substr($v['ctrl']['title'], 8);
$_EXTKEY = substr($_EXTKEY, 0, strpos($_EXTKEY, '/'));
if ($_EXTKEY != '') {
// first try to get localisation of extension title
$temp = explode(':', substr($v['ctrl']['title'], 9 + strlen($_EXTKEY)));
$langFile = $temp[0];
$thisTitle = $GLOBALS['LANG']->sL('LLL:EXT:' . $_EXTKEY . '/' . $langFile . ':extension.title');
// if no localisation available, read title from ext_emconf.php
if (!$thisTitle && is_file(t3lib_extMgm::extPath($_EXTKEY) . 'ext_emconf.php')) {
include(t3lib_extMgm::extPath($_EXTKEY) . 'ext_emconf.php');
$thisTitle = $EM_CONF[$_EXTKEY]['title'];
}
$iconFile[$_EXTKEY] = '<img src="' . t3lib_extMgm::extRelPath($_EXTKEY) . 'ext_icon.gif" />';
} else {
$thisTitle = $nameParts[1];
$iconFile[$_EXTKEY] = '';
}
if ($nameParts[0] === 'tx' || $nameParts[0] === 'tt') {
if (substr($v['ctrl']['title'], 0, 8) === 'LLL:EXT:') {
$_EXTKEY = substr($v['ctrl']['title'], 8, strpos($v['ctrl']['title'], '/') - 8);
} else {
$thisTitle = $nameParts[1];
$iconFile[$_EXTKEY] = '';
$_EXTKEY = $nameParts[1];
}
$temp = explode(':', substr($v['ctrl']['title'], 9 + strlen($_EXTKEY)));
$langFile = $temp[0];
$thisTitle = $GLOBALS['LANG']->sL('LLL:EXT:' . $_EXTKEY . '/' . $langFile . ':extension.title');
if (empty($thisTitle)) {
if (is_file(t3lib_extMgm::extPath($_EXTKEY) . 'ext_emconf.php')) {
include(t3lib_extMgm::extPath($_EXTKEY) . 'ext_emconf.php');
$thisTitle = $GLOBALS['LANG']->sL($EM_CONF[$_EXTKEY]['title']);
}
}
if (is_file(t3lib_extMgm::extPath($_EXTKEY) . 'ext_emconf.php')) {
$iconFile[$_EXTKEY] = '<img src="' . t3lib_extMgm::extRelPath($_EXTKEY) . 'ext_icon.gif" />';
}
} else {
$_EXTKEY = 'system';
$thisTitle = $GLOBALS['LANG']->getLL('system_records');
(2-2/3)