|
@@ -120,14 +120,17 @@ if(!defined('entry') || !entry) die('Not a valid page');
|
120
|
120
|
}
|
121
|
121
|
|
122
|
122
|
function isVimeoVideo($videoUrl) {
|
123
|
|
- if (beginsWith($videoUrl, "http://vimeo.com/clip:") || beginsWith($videoUrl, "http://www.vimeo.com/clip:"))
|
|
123
|
+ if (beginsWith($videoUrl, "http://vimeo.com/") || beginsWith($videoUrl, "http://www.vimeo.com/"))
|
124
|
124
|
return true;
|
125
|
125
|
else
|
126
|
126
|
return false;
|
127
|
127
|
}
|
128
|
128
|
|
129
|
129
|
function getVimeoVideoUrl($videoUrl) {
|
130
|
|
- return array_pop(explode("clip:",$videoUrl));
|
|
130
|
+ if(substr_count($videoUrl,"clip:")==1)
|
|
131
|
+ return array_pop(explode("clip:",$videoUrl));
|
|
132
|
+ else
|
|
133
|
+ return array_pop(explode("/",$videoUrl));
|
131
|
134
|
}
|
132
|
135
|
|
133
|
136
|
function isYoutubeVideo($videoUrl) {
|