diff --git a/admin/options.php b/admin/options.php
index 16a56ca..e1d09d1 100644
--- a/admin/options.php
+++ b/admin/options.php
@@ -156,6 +156,7 @@ if ($user->isAdmin()) {
+
diff --git a/classes/functions.php b/classes/functions.php
index d9b0d7a..2b40f25 100644
--- a/classes/functions.php
+++ b/classes/functions.php
@@ -134,7 +134,8 @@ if(!defined('entry') || !entry) die('Not a valid page');
}
function isYoutubeVideo($videoUrl) {
- if (beginsWith($videoUrl, "http://youtube.com/watch?v=") || beginsWith($videoUrl, "http://www.youtube.com/watch?v="))
+ $url = explode("?", $videoUrl);
+ if (beginsWith($url[0], "http://") && endsWith($url[0], ".youtube.com/watch"))
return true;
else
return false;
diff --git a/classes/gelato.class.php b/classes/gelato.class.php
index 4055e0c..3380b5e 100644
--- a/classes/gelato.class.php
+++ b/classes/gelato.class.php
@@ -182,7 +182,7 @@ class gelato extends Conexion_Mysql {
$playerUrl = $this->conf->urlGelato."/admin/scripts/player.swf?soundFile=".$url;
return "\t\t\t\n";
} elseif (isGoEar($url)) {
- return "\t\t\t\n";
+ return "\t\t\t\n";
} elseif (isOdeo($url)) {
return "\t\t\t\n";
} else {