Bug #15735
closedProposal for sysext/cms/tslib/index_ts.php - change hardcoded "typo3/" to TYPO3_mainDir
0%
Description
if (!defined('PATH_tslib')) {
if (@is_dir(PATH_site.'typo3/sysext/cms/tslib/')) {
define('PATH_tslib', PATH_site.'typo3/sysext/cms/tslib/');
} elseif (@is_dir(PATH_site.'tslib/')) {
define('PATH_tslib', PATH_site.'tslib/');
}
}
=>
if (!defined('PATH_tslib')) {
if (@is_dir(PATH_site . TYPO3_mainDir .'sysext/cms/tslib/')) {
define('PATH_tslib', PATH_site . TYPO3_mainDir .'sysext/cms/tslib/');
} elseif (@is_dir(PATH_site.'tslib/')) {
define('PATH_tslib', PATH_site.'tslib/');
}
}
Or do you see any side effects?
Greetings,
Christian
(issue imported from #M2713)
Updated by Wolfgang Klinger over 18 years ago
no side effects, but TYPO3_mainDir is defined two lines above the lines you want to change, so I think this is rather unnecessary... (?)
Updated by Christian Trabold over 18 years ago
When the TYPO3_mainDir is defined two lines above - why is it hardcoded two lines below?
Updated by Sebastian Kurfuerst over 18 years ago
no side effects, and I think that change makes TYPO3 a bit "cleaner" again - as it is a very easy change...
Greets, Sebastian