Project

General

Profile

Bug #16865 ยป 0004803.patch

Administrator Admin, 2007-01-18 10:24

View differences:

t3lib/class.t3lib_div.php (Arbeitskopie)
function llXmlAutoFileName($fileRef,$language) {
// Analyse file reference:
$location = 'typo3conf/l10n/'.$language.'/'; // Default location of translations
if (t3lib_div::isFirstPartOfStr($fileRef,PATH_typo3.'sysext/')) { // Is system:
$validatedPrefix = PATH_typo3.'sysext/';
if (t3lib_div::isFirstPartOfStr($fileRef,PATH_site.TYPO3_mainDir.'sysext/')) { // Is system:
$validatedPrefix = PATH_site.TYPO3_mainDir.'sysext/';
#$location = 'EXT:csh_'.$language.'/'; // For system extensions translations are found in "csh_*" extensions (language packs)
} elseif (t3lib_div::isFirstPartOfStr($fileRef,PATH_typo3.'ext/')) { // Is global:
$validatedPrefix = PATH_typo3.'ext/';
} elseif (t3lib_div::isFirstPartOfStr($fileRef,PATH_site.TYPO3_mainDir.'ext/')) { // Is global:
$validatedPrefix = PATH_site.TYPO3_mainDir.'ext/';
} elseif (t3lib_div::isFirstPartOfStr($fileRef,PATH_typo3conf.'ext/')) { // Is local:
$validatedPrefix = PATH_typo3conf.'ext/';
} else {
    (1-1/1)