Fix broken string replacement for media/ folder
The function setAbsRefPrefix() of the class tslib_fe includes the following string replacement, which is obsolete and should be removed.
$this->content = str_replace('"media/', '"'.t3lib_extMgm::siteRelPath('cms').'tslib/media/', $this->content);
#3 Updated by Patrick Rodacker almost 9 years ago
Susanne Moog May 24 Patch Set 1: I would prefer that you didn't submit this As far as I can see we should not remove the replacement as TYPO3 core still allows the media/ folder as valid place for storing scripts and media files (see t3lib_tstemplate for example) - if someone is still using that directory for file inclusion this patch will break paths if absRefPrefix is used. We should deprecate the inclusion of files in the media folder first.
How do we deprecate the inclusion from the media/ folder first?
I read in another post, that a htaccess file with an AJAX call to write the log could be used.