Project

General

Profile

Bug #50041 ยป class.tslib_mediawizardcoreprovider.patch

Jochem de Groot, 2013-07-15 17:57

View differences:

typo3_src/typo3/sysext/cms/tslib/class.tslib_mediawizardcoreprovider.php (revision )
*/
protected function process_youtube($url) {
$videoId = '';
$http = 'http';
if (strpos($url, '/user/') !== FALSE) {
// it's a channel
$parts = explode('/', $url);
......
$videoId = $matches[2];
}
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
$http = 'http';
}
if ($videoId) {
$url = 'http://www.youtube.com/v/' . $videoId . '?fs=1';
$url = $http . '://www.youtube.com/v/' . $videoId . '?fs=1';
}
return $url;
}
    (1-1/1)