From: Alan Jack Pippin <ajp@pippin.(none)>
Date: Mon, 11 Jun 2007 23:43:23 +0000 (-0600)
Subject: Fixed a few bugs I introduced this morning when converting hard coded text to variables.
X-Git-Tag: 1_0_4~13
X-Git-Url: http://git.pippins.net/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/static/git-favicon.png?a=commitdiff_plain;h=915fde0fe9be5bb5bd7faa06836d494b3b09a03a;p=embedvideo%2F.git

Fixed a few bugs I introduced this morning when converting hard coded text to variables.
---

diff --git a/ItemAddEmbedVideo.inc b/ItemAddEmbedVideo.inc
index 418bbcb..eb15456 100644
--- a/ItemAddEmbedVideo.inc
+++ b/ItemAddEmbedVideo.inc
@@ -110,7 +110,7 @@ class ItemAddEmbedVideo extends ItemAddPlugin {
 	       $feed.= "&dev_id=$dev_id&video_id=$video_id";
 	       
 	       /* Get the youtube xml feed as a string data source */
-	       $xml = _getFeed($feed);	
+	       $xml = $this->_getFeed($feed);	
 
 	       if($debugOutput) {
 		 print "$xml";
@@ -162,7 +162,8 @@ class ItemAddEmbedVideo extends ItemAddPlugin {
 	       }
 
 	       /* Grab the contents of the webpage used to display the video on video.google.com */
-	       $contents=file_get_contents($url);
+	       //$contents=file_get_contents($url);
+	       $contents = $this->_getFeed($url);
 
 	       /* Extract the summary from the webpage contents */
 	       preg_match('/<meta content="(.+?)\. \w+ \d+, \d+.*" name="description">/i',
@@ -184,7 +185,7 @@ class ItemAddEmbedVideo extends ItemAddPlugin {
 	       $description = '<embed FlashVars="autoPlay=true" ';
 	       $description.= 'style="width:'.$width.'px; height:'.$height.'px;" id="VideoPlayback" ';
 	       $description.= 'type="application/x-shockwave-flash" ';
-	       $description.= 'src="'.$googlePlayer.'"?docId='.$doc_id.'"> ';
+	       $description.= 'src="'.$googlePlayer.'?docId='.$doc_id.'"> ';
 	       $description.= '</embed>';
 	       $description.= "<br>$summary";