Actions
Bug #19166
closedt3lib_befunc::getNoRecordTitle dies with fatal error if $LANG is not instantiated
Start date:
2008-07-29
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
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)
Actions