diff options
author | Steve Clay <steve@mrclay.org> | 2012-04-10 10:44:40 -0400 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-04-10 10:44:40 -0400 |
commit | d2bb8789a80215708517f4ffc88462382ec601a8 (patch) | |
tree | 1fb8dbc82bf3cef84fda97e842ebfe501ca590d6 | |
parent | c70ec6161e4ef4d0daee6514da0a4d4e6b183207 (diff) | |
download | elgg-d2bb8789a80215708517f4ffc88462382ec601a8.tar.gz elgg-d2bb8789a80215708517f4ffc88462382ec601a8.tar.bz2 |
Remove redundant videotype from parseUrl return array
-rw-r--r-- | actions/videolist/edit.php | 1 | ||||
-rw-r--r-- | lib/Videolist/Platform/Bliptv.php | 1 | ||||
-rw-r--r-- | lib/Videolist/Platform/Gisstv.php | 1 | ||||
-rw-r--r-- | lib/Videolist/Platform/Metacafe.php | 1 | ||||
-rw-r--r-- | lib/Videolist/Platform/Vimeo.php | 1 | ||||
-rw-r--r-- | lib/Videolist/Platform/Youtube.php | 1 |
6 files changed, 1 insertions, 5 deletions
diff --git a/actions/videolist/edit.php b/actions/videolist/edit.php index 480a3943b..4b96720d8 100644 --- a/actions/videolist/edit.php +++ b/actions/videolist/edit.php @@ -48,6 +48,7 @@ if(!$video_guid) { unset($input['title']);
unset($input['description']);
$input = array_merge($parsed, $platform->getData($parsed), $input);
+ $input['videotype'] = $platform->getType();
} else {
unset($input['video_url']);
diff --git a/lib/Videolist/Platform/Bliptv.php b/lib/Videolist/Platform/Bliptv.php index 6956e060d..aa53032f9 100644 --- a/lib/Videolist/Platform/Bliptv.php +++ b/lib/Videolist/Platform/Bliptv.php @@ -17,7 +17,6 @@ class Videolist_Platform_Bliptv implements Videolist_PlatformInterface } return array( - 'videotype' => 'bliptv', 'video_id' => $parsed['path'], ); } diff --git a/lib/Videolist/Platform/Gisstv.php b/lib/Videolist/Platform/Gisstv.php index f811619a8..b79898449 100644 --- a/lib/Videolist/Platform/Gisstv.php +++ b/lib/Videolist/Platform/Gisstv.php @@ -25,7 +25,6 @@ class Videolist_Platform_Gisstv implements Videolist_PlatformInterface } return array( - 'videotype' => 'gisstv', 'video_id' => $video_id, ); } diff --git a/lib/Videolist/Platform/Metacafe.php b/lib/Videolist/Platform/Metacafe.php index 3cf2fb8ce..7da6d1647 100644 --- a/lib/Videolist/Platform/Metacafe.php +++ b/lib/Videolist/Platform/Metacafe.php @@ -17,7 +17,6 @@ class Videolist_Platform_Metacafe implements Videolist_PlatformInterface } return array( - 'videotype' => 'metacafe', 'video_id' => $path[2], ); } diff --git a/lib/Videolist/Platform/Vimeo.php b/lib/Videolist/Platform/Vimeo.php index 82bd57309..a4a1f275c 100644 --- a/lib/Videolist/Platform/Vimeo.php +++ b/lib/Videolist/Platform/Vimeo.php @@ -17,7 +17,6 @@ class Videolist_Platform_Vimeo implements Videolist_PlatformInterface } return array( - 'videotype' => 'vimeo', 'video_id' => $path[1], ); } diff --git a/lib/Videolist/Platform/Youtube.php b/lib/Videolist/Platform/Youtube.php index 648ac282c..d5a388356 100644 --- a/lib/Videolist/Platform/Youtube.php +++ b/lib/Videolist/Platform/Youtube.php @@ -27,7 +27,6 @@ class Videolist_Platform_Youtube implements Videolist_PlatformInterface } if ($id) { return array( - 'videotype' => 'youtube', 'video_id' => $id, ); } |