Explorar el Código

fixing youtube videos with default url

vbracco hace 15 años
padre
commit
9c8ed8d653
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      classes/functions.php

+ 1 - 1
classes/functions.php Ver fichero

@@ -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;