aboutsummaryrefslogtreecommitdiff
path: root/lib/videolist.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/videolist.php')
-rw-r--r--lib/videolist.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/videolist.php b/lib/videolist.php
index 776ce7093..b86db99cf 100644
--- a/lib/videolist.php
+++ b/lib/videolist.php
@@ -28,12 +28,9 @@ function videolist_get_default_platforms() {
* @return array [parsed, platform]
*/
function videolist_parse_url($url) {
- $parsed = parse_url($url);
- if (empty($parsed['host']) && ! empty($parsed['path']) && $parsed['path'][0] !== '/') {
- // user probably forgot scheme
- $url = 'http://' . $url;
- }
- $params['url'] = $url;
+ $params = array(
+ 'url' => $url,
+ );
$platforms = videolist_get_default_platforms();
$platforms = elgg_trigger_plugin_hook('videolist:prepare', 'platforms', $params, $platforms);
foreach ($platforms as $list) {