From: Alan Jack Pippin Date: Mon, 11 Jun 2007 23:32:18 +0000 (-0600) Subject: Added code to remove hardcoded gallery2 server URL. X-Git-Tag: 1_0_4~15 X-Git-Url: http://git.pippins.net/embedvideo/images/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/static/gitweb.js?a=commitdiff_plain;h=3bed8fb51b37cb1ed554dc38fb5653667be18cbd;p=embedvideo%2F.git Added code to remove hardcoded gallery2 server URL. It now makes a call to determine what this should be. --- 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'];