Project

General

Profile

Actions

Bug #55459

closed

tslib_mediaWizardManager: Overriding media providers is not possible

Added by Gert Hammes about 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
Start date:
2014-01-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

To fix the problem caused by the bug #50041 in TYPO3 4.7 i tried to add a new media provider for Youtube videos.

But overriding the default media provider for YouTube is not possible due to a bug in tslib_mediaWizardManager::getValidMediaWizardProvider

The media providers should be iterated in reverse order. The reversing of the array is present in the method:

$providers = array_reverse(self::$providers, TRUE);

But in the foreach-loop in the next line the variable self::$providers is used instead of $providers, making the previous line useless.

Instead of foreach (self::$providers as $className => $provider) the loop should be foreach ($providers as $provider)

This bug is already fixed in TYPO3 6.x but still exists in TYPO3 4.5 and 4.7.

Actions #1

Updated by Mathias Schreiber about 9 years ago

  • Target version set to 7.2 (Frontend)
Actions #2

Updated by Benni Mack almost 9 years ago

  • Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Actions #3

Updated by Benni Mack almost 9 years ago

  • Status changed from New to Closed

fixed in v7 as well.

Actions

Also available in: Atom PDF