[TYPO3-core] RFC: Bug 10536: Hardcoded backend main dir in typo3/classes/class.typo3logo.php

Christian Kuhn lolli at schwarzbu.ch
Tue Feb 24 15:59:28 CET 2009


This is an SVN patch request.

Type: bug, nobrainer

Bugtracker references:
http://bugs.typo3.org/view.php?id=10536

Branches: trunk, 4.2-branch

Problem: If you change the backend directory as described in [1] a php
error is raised on top of the backend due to a hardcoded "typo3/" in
typo3/classes/class.typo3logo.php

Solution: Change hardcoded "typo3/" to "TYPO3_mainDir" constant.

How to reproduce:
- Remove symlink "typo3" from your installation and set a new one, eg.
"backend"
- Change source as documented in [1] or apply attached hack
typo3_change_backendpath.diff
- Log in to backend, a getimgsize php error is shown on top of the backend
- Apply patch, error gone

Notes: This is a nobrainer. There are some other errors if you change
TYPO3_mainDir, one of them is documented in #10458, but I do not know if
my attached patch there is the right way to fix it.

Regards
Christian

[1]
http://typo3.org/documentation/document-library/core-documentation/doc_core_inside/4.2.0/view/2/11/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 10536_v1.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090224/4657d07f/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: typo3_change_backendpath.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090224/4657d07f/attachment-0001.txt 


More information about the TYPO3-team-core mailing list