Project

General

Profile

Actions

Bug #19166

closed

t3lib_befunc::getNoRecordTitle dies with fatal error if $LANG is not instantiated

Added by Christian Jul Jensen over 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
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

Also available in: Atom PDF