Bug #19166
closedt3lib_befunc::getNoRecordTitle dies with fatal error if $LANG is not instantiated
0%
Description
When using t3lib_befunc::getRecordTitle the method t3lib_befunc::getNoRecordTitle will be called if there is no title of the record. This method relies on $LANG to be instantiated, which is not the case in CLI mode.
This makes the crawler extension fail if reaches a page with no title.
Instantiating the LANG object seems overkill, so a simple check if it is, and if not just returning a default hardcoded value or an empty string would be a solution.
(issue imported from #M9072)
Updated by Chris topher over 16 years ago
Here the question again is where $LANG should be instantiated.
See Corelist, issue 8564 for a discussion about that:
http://lists.typo3.org/pipermail/typo3-team-core/2008-July/thread.html#25033
The only thing missing yet is a solution...
Updated by Christian Kuhn almost 16 years ago
With current trunk (r4805) $LANG is initialized in init.php. This was changed with #19328. So this issue is solved, right?
Updated by Christian Kuhn almost 16 years ago
This should be fixed with #19328.
I didn't set up a test case, but I really think the issue is solved.
Please reopen if I missed something.