Bug #17339

linkHandler Hook Not Initialized Properly

Added by Jeff Segars almost 14 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2007-05-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

TYPO3 4.1.0 added a new hook for linkHandlers in tslib_content to allow extensions to link to individual records.

The code here uses TYPO3_CONF_VARS to initialize the hook, but the TYPO3_CONF_VARS are not declared as a global so the hook array is always empty.

I"m attaching the very trivial patch to declare them as a global and also to make sure the hook method exists before it is called.

(issue imported from #M5701)


Files

class.tslib_content.php.diff (604 Bytes) class.tslib_content.php.diff Administrator Admin, 2007-05-29 18:36

Related issues

Has duplicate TYPO3 Core - Bug #17582: typolinkLinkHandler does not workClosed2007-09-05

Actions
#1

Updated by Steffen Kamper almost 14 years ago

i can confirm this - thx jeff, now the hook works.

#2

Updated by Steffen Kamper almost 14 years ago

more easy would be to add this statement at the beginning of the function:

global $TYPO3_CONF_VARS;

like in all other hooks defined in core ;-)

#3

Updated by Ingo Renner over 13 years ago

fixed in SVN

Also available in: Atom PDF