Bug #17339

linkHandler Hook Not Initialized Properly

Added by Jeff Segars over 12 years ago. Updated over 11 years ago.

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

0%

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)

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


Related issues

Duplicated by TYPO3 Core - Bug #17582: typolinkLinkHandler does not work Closed 2007-09-05

History

#1 Updated by Steffen Kamper over 12 years ago

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

#2 Updated by Steffen Kamper over 12 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 about 12 years ago

fixed in SVN

Also available in: Atom PDF