summaryrefslogtreecommitdiff
path: root/www/youtube.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/youtube.php')
-rw-r--r--www/youtube.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/www/youtube.php b/www/youtube.php
index 13829fa..0843299 100644
--- a/www/youtube.php
+++ b/www/youtube.php
@@ -1,11 +1,11 @@
<?php
-include("zend_init.php");
+require("zend_init.php");
-function getAndPrintVideoFeed($location = Zend_Gdata_YouTube::VIDEO_URI)
+function getAndPrintVideoFeed($location, $yt)
{
-$yt = new Zend_Gdata_YouTube();
-$yt->setMajorProtocolVersion(2);
+//$yt = new Zend_Gdata_YouTube();
+//$yt->setMajorProtocolVersion(2);
$videoFeed = $yt->getVideoFeed($location);
printVideoFeed($videoFeed);
@@ -79,7 +79,7 @@ function get_video(){
return $string;
}
-getAndPrintVideoFeed();
+getAndPrintVideoFeed($location = Zend_Gdata_YouTube::VIDEO_URI, $yt);
$searchstring = get_video();