Bug #55459
closedtslib_mediaWizardManager: Overriding media providers is not possible
0%
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.