From 3bed8fb51b37cb1ed554dc38fb5653667be18cbd Mon Sep 17 00:00:00 2001 From: Alan Jack Pippin Date: Mon, 11 Jun 2007 17:32:18 -0600 Subject: [PATCH] Added code to remove hardcoded gallery2 server URL. It now makes a call to determine what this should be. --- ItemAddEmbedVideo.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ItemAddEmbedVideo.inc b/ItemAddEmbedVideo.inc index 457ad72..418bbcb 100644 --- a/ItemAddEmbedVideo.inc +++ b/ItemAddEmbedVideo.inc @@ -75,9 +75,10 @@ class ItemAddEmbedVideo extends ItemAddPlugin { $googlePlayer="http://video.google.com/googleplayer.swf"; /* Gallery2 specific paths and variables */ - $gallery2_url = "http://www.pippins.net/gallery2"; - $gallery2_flv_thumbnail = "/modules/thumbnail/images/G2video.jpg"; - $gallery2_flv_player = "/modules/flashvideo/lib/G2flv.swf"; + $urlGenerator =& $gallery->getUrlGenerator(); + $gallery2_url = $urlGenerator->getCurrentUrlDir(); + $gallery2_flv_thumbnail = "modules/thumbnail/images/G2video.jpg"; + $gallery2_flv_player = "modules/flashvideo/lib/G2flv.swf"; /* Store the passed URL in a shorter local variable */ $url = $form['webPage']['URL']; -- 2.34.1