Added code to remove hardcoded gallery2 server URL.
authorAlan Jack Pippin <ajp@pippin.(none)>
Mon, 11 Jun 2007 23:32:18 +0000 (17:32 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Mon, 11 Jun 2007 23:32:18 +0000 (17:32 -0600)
It now makes a call to determine what this should be.

ItemAddEmbedVideo.inc

index 457ad724a52fd6ae6920873c550f05d11c5f7b0c..418bbcbdb048ca8cc56adcc5e8aaf627335026d5 100644 (file)
@@ -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'];