]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
set provider global JS variable from Mapstraction
authorEvan Prodromou <evan@status.net>
Wed, 18 Nov 2009 13:33:48 +0000 (08:33 -0500)
committerEvan Prodromou <evan@status.net>
Wed, 18 Nov 2009 13:33:48 +0000 (08:33 -0500)
plugins/Mapstraction/MapstractionPlugin.php

index 9a99d67427f7bbde4aa0fe0455139f5f075d471e..2784c7083d3bc85f2e7162354939357d6c92635f 100644 (file)
@@ -144,6 +144,9 @@ class MapstractionPlugin extends Plugin
                                 common_path('plugins/Mapstraction/js/mxn.js'),
                                 $this->provider));
 
+        $action->element('script', array('type' => 'text/javascript'),
+                         sprintf('var _provider = "%s";', $this->provider));
+
         return true;
     }
 }