Project

General

Profile

Actions

Bug #15735

closed

Proposal for sysext/cms/tslib/index_ts.php - change hardcoded "typo3/" to TYPO3_mainDir

Added by Christian Trabold over 18 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend User Interface
Target version:
-
Start date:
2006-02-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

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... (?)

Actions #2

Updated by Christian Trabold over 18 years ago

When the TYPO3_mainDir is defined two lines above - why is it hardcoded two lines below?

Actions #3

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

Actions #4

Updated by Sebastian Kurfuerst over 18 years ago

fixed in cvs.

Actions

Also available in: Atom PDF