Project

General

Profile

Actions

Bug #22669

closed

getExtensionKeyByPrefix() not working for user_-namespace

Added by Julian Hofmann over 14 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-05-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Remote Sprint

Description

For extensions in the user-namespace (e.g. 'user_example'), the arraykey in $extensionKeyMap is the full extensionkey instead of only the non-prefixed part. As result, no real extensionkey is found.

Should be fixed with the following changes:
- $shortKey = str_replace('_', '', $extensionKey);
+ $shortKey = ? substr($extensionKey, 5) : str_replace('_', '', $extensionKey);

In combination with the scheduler and autoloader this occures "unable to autoload" exceptions for user_*-classes used as AdditionalFieldProvider
(issue imported from #M14409)

Actions

Also available in: Atom PDF