[BUGFIX] Vimeo mediawizardprovider needs new syntax
authorGeorg Ringer <mail@ringerge.org>
Tue, 8 Nov 2011 07:58:02 +0000 (08:58 +0100)
committerOliver Hader <oliver@typo3.org>
Tue, 22 Nov 2011 13:03:07 +0000 (14:03 +0100)
Vimeo changed its behaviour and there is always the
vimeo error "no video" shown. Their change is strange
as vimeo required the argument clip_id as the 1st one

Change-Id: I6f4e1758175a2bda1eb7bfd9083fb769e1c6eeca
Resolves: #31661
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/6841
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/cms/tslib/class.tslib_mediawizardcoreprovider.php

index 8a28b80..578578c 100644 (file)
@@ -175,8 +175,7 @@ class tslib_mediaWizardCoreProvider implements tslib_mediaWizardProvider {
        protected function process_vimeo($url) {
                if (preg_match('/[\/#](\d+)$/', $url, $matches)) {
                        $videoId = $matches[1];
-                       $url = 'http://vimeo.com/moogaloop.swf?&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&fullscreen=1&clip_id=' .
-                               $videoId;
+                       $url = 'http://vimeo.com/moogaloop.swf?clip_id=' . $videoId . '&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&fullscreen=1';
                }
                return $url;
        }