diff --git a/modules/embed_videos/controllers/embedded_videos.php b/modules/embed_videos/controllers/embedded_videos.php
index e125cde5..28646d8c 100644
--- a/modules/embed_videos/controllers/embedded_videos.php
+++ b/modules/embed_videos/controllers/embedded_videos.php
@@ -31,7 +31,7 @@ class Embedded_videos_Controller extends Controller {
$youtubeThumbnailUrl="http://img.youtube.com/vi/";
$vimeoUrlPattern="vimeo.com";
// End mess
-
+
batch::start();
try {
$valid = $form->validate();
@@ -74,24 +74,24 @@ class Embedded_videos_Controller extends Controller {
}
} else if(preg_match("/$vimeoUrlPattern/",$url)) {
if(preg_match("/$vimeoUrlPattern\/(.*)/",$url,$matches)) {
- $video_id = $matches[1];
- if ($video_id) {
- $sxml = simplexml_load_file("http://vimeo.com/api/v2/video/$video_id.xml");
- if ($sxml) {
- $valid_url = true;
- if ($title == '') {
- $title = (string)$sxml->video->title;
- }
- if ($description == '') {
- $description = strip_tags((string)$sxml->video->description);
- }
- $embedded_video->source = "Vimeo";
- $content = file_get_contents((string)$sxml->video->thumbnail_large);
- $itemname = "vimeo_" . $video_id . ".jpg";
- $temp_filename = VARPATH . "tmp/$itemname";
- $embedded_video->embed_code = '';
- }
- }
+ $video_id = $matches[1];
+ if ($video_id) {
+ $sxml = simplexml_load_file("http://vimeo.com/api/v2/video/$video_id.xml");
+ if ($sxml) {
+ $valid_url = true;
+ if ($title == '') {
+ $title = (string)$sxml->video->title;
+ }
+ if ($description == '') {
+ $description = strip_tags((string)$sxml->video->description);
+ }
+ $embedded_video->source = "Vimeo";
+ $content = file_get_contents((string)$sxml->video->thumbnail_large);
+ $itemname = "vimeo_" . $video_id . ".jpg";
+ $temp_filename = VARPATH . "tmp/$itemname";
+ $embedded_video->embed_code = '';
+ }
+ }
}
}
//$item->validate();