[TYPO3-core] RFC: Fix for bug #2667
Karsten Dambekalns
karsten at typo3.org
Sun Feb 26 09:24:11 CET 2006
Hi.
On Friday 24 February 2006 09:35, Michael Stucki wrote:
> Looks ok but I wonder how this could be working in the past:
...
> media/ was never linked from inside of the "cms" extension.
> Could it be that t3lib_extMgm::siteRelPath('cms') is returning
> an empty string? Please make sure you try this first.
I don't know that either, seems strange. :) But there is no special handling
for cms in siteRelPath(). Let's see:
In the case of $key='cms' I just had this on our server with 3.8.1:
t3lib_extMgm::extPath($key) => /usr/local/www/fishfarm.de/typo3/sysext/cms/
strlen(PATH_site) => 27
So this
function siteRelPath($key) {
return substr(t3lib_extMgm::extPath($key),strlen(PATH_site));
}
returns: typo3/sysext/cms/
I think the fix is fine, although I don't understand why it worked, too.
Karsten
--
Karsten Dambekalns
TYPO3 Association - Active Member
http://association.typo3.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060226/b70ac231/attachment.pgp
More information about the TYPO3-team-core
mailing list