소스 검색

fixing youtube videos with default url

vbracco 17 년 전
부모
커밋
9c8ed8d653
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      classes/functions.php

+ 1 - 1
classes/functions.php 파일 보기

@@ -135,7 +135,7 @@ if(!defined('entry') || !entry) die('Not a valid page');
135 135
 	
136 136
 	function isYoutubeVideo($videoUrl) {
137 137
 		$url = explode("?", $videoUrl);
138
-		if (beginsWith($url[0], "http://") && endsWith($url[0], ".youtube.com/watch"))
138
+		if((beginsWith($url[0], "http://") && endsWith($url[0], ".youtube.com/watch")) || beginsWith($url[0], "http://youtube.com/watch"))
139 139
 			return true;
140 140
 		else
141 141
 			return false;